Inherits YGP::ParseText.
Public Member Functions | |
CBParseText (const char *abort, const char *description, PARSECALLBACK callback, unsigned int max, unsigned int min=1, bool skipWhitespace=true) | |
CBParseText (const CBParseText &other) | |
virtual | ~CBParseText () |
CBParseText & | operator= (const CBParseText &other) |
void | setCallback (PARSECALLBACK callback) |
Protected Member Functions | |
virtual int | found (const char *pFoundValue, unsigned int len) |
See ParseObject for a general description of the parser and ParseText for a description of how this class parses its object.
YGP::CBParseText::CBParseText | ( | const char * | abort, | |
const char * | description, | |||
PARSECALLBACK | callback, | |||
unsigned int | max, | |||
unsigned int | min = 1 , |
|||
bool | skipWhitespace = true | |||
) | [inline] |
Constructor; with callback to call if object is found.
YGP::CBParseText::CBParseText | ( | const CBParseText & | other | ) | [inline] |
Copy constructor.
YGP::CBParseText::~CBParseText | ( | ) | [virtual] |
Destructor.
int YGP::CBParseText::found | ( | const char * | pFoundValue, | |
unsigned int | len | |||
) | [protected, virtual] |
Calls the defined callback with the passed parameter and returns its result.
pFoundValue | Pointer to found value | |
len | Length of found data |
Reimplemented from YGP::ParseObject.
CBParseText & YGP::CBParseText::operator= | ( | const CBParseText & | other | ) |
void YGP::CBParseText::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.