casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
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>

Public Member Functions

 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 514 of file Misc.h.

Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

char* asdm::CharComparator::asdmDebug_p
private

Definition at line 522 of file Misc.h.

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

Definition at line 520 of file Misc.h.

off_t asdm::CharComparator::limit
private

Definition at line 521 of file Misc.h.


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