Inherits YGP::ParseExact.
Inherited by YGP::CBParseUpperExact, and YGP::OFParseUpperExact< T >.
Public Member Functions | |
ParseUpperExact (const char *value, const char *description, bool skipWhitespace=true, bool reportData=true) | |
ParseUpperExact (const char *value, const char *description, unsigned int max, unsigned int min, bool skipWhitespace=true, bool reportData=true) | |
ParseUpperExact (const ParseUpperExact &other) | |
virtual | ~ParseUpperExact () |
ParseUpperExact & | operator= (const ParseUpperExact &other) |
Protected Types | |
enum | { VALUE_NOT_UPPERCASE = ParseExact::LAST, LAST } |
Protected Member Functions | |
virtual int | checkValue (char ch) |
virtual int | checkIntegrity () const |
The min-
and max-members
are not totally wasted; they could be used to define the minimal length of certain keywords which would be valid even if just written in a short(er) form and/or to include values with a zero ('\0') character (although the main reason for them is that I didn't want to re-consider the class-hierarchy anymore).
YGP::ParseUpperExact::ParseUpperExact | ( | const char * | value, | |
const char * | description, | |||
bool | skipWhitespace = true , |
|||
bool | reportData = true | |||
) | [inline] |
Constructor.
YGP::ParseUpperExact::ParseUpperExact | ( | const char * | value, | |
const char * | description, | |||
unsigned int | max, | |||
unsigned int | min, | |||
bool | skipWhitespace = true , |
|||
bool | reportData = true | |||
) | [inline] |
Constructor with explicit length of the object to parse.
YGP::ParseUpperExact::ParseUpperExact | ( | const ParseUpperExact & | other | ) | [inline] |
Copy constructor.
YGP::ParseUpperExact::~ParseUpperExact | ( | ) | [virtual] |
Destructor.
int YGP::ParseUpperExact::checkIntegrity | ( | ) | const [protected, virtual] |
int YGP::ParseUpperExact::checkValue | ( | char | ch | ) | [protected, virtual] |
Checks if the passed character is exactly equal (not case-sensitive!) than the one in the actual position of the object.
ch | Char to check |
Reimplemented from YGP::ParseExact.
ParseUpperExact& YGP::ParseUpperExact::operator= | ( | const ParseUpperExact & | other | ) | [inline] |
Assignment operator.