casa
5.7.0-16
|
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 |
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.
asdm::CharComparator::CharComparator | ( | std::ifstream * | is_p = NULL , |
off_t | limit = 0 |
||
) |
bool asdm::CharComparator::operator() | ( | char | cl, |
char | cr | ||
) |