casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
asdm::CharComparator Class Reference

Functor class of for a comparison between a "given" character and a characted assumed to be read from a file. More...

#include <Misc.h>

List of all members.

Public Member Functions

 CharComparator (std::ifstream *is_p=NULL, off_t limit=0)
bool operator() (char cl, char cr)
 CharComparator (std::ifstream *is_p=NULL, off_t limit=0)
bool operator() (char cl, char cr)

Private Attributes

std::ifstream * is_p
off_t limit
char * asdmDebug_p

Detailed Description

Functor class of for a comparison between a "given" character and a characted assumed to be read from a file.

Instances of this class are meant to be used as binary bool functor comparing the uppercase version of the first (char) operand with the second (char) operand and returning the boolan result of the comparison as long as the read head position in the file passed as a parameter to the constructor is smaller than a limit also passed a parameter to the constructor. Once this limit is passed , the () operator which returns the result of the comparison will return systematically true.

Definition at line 431 of file Misc.h.


Constructor & Destructor Documentation

asdm::CharComparator::CharComparator ( std::ifstream *  is_p = NULL,
off_t  limit = 0 
)
asdm::CharComparator::CharComparator ( std::ifstream *  is_p = NULL,
off_t  limit = 0 
)

Member Function Documentation

bool asdm::CharComparator::operator() ( char  cl,
char  cr 
)
bool asdm::CharComparator::operator() ( char  cl,
char  cr 
)

Member Data Documentation

Definition at line 439 of file Misc.h.

std::ifstream * asdm::CharComparator::is_p [private]

Definition at line 437 of file Misc.h.

off_t asdm::CharComparator::limit [private]

Definition at line 438 of file Misc.h.


The documentation for this class was generated from the following files: