Inherits YGP::ParseEOF.
Public Member Functions | |
CBParseEOF (PARSECALLBACK callback) | |
virtual | ~CBParseEOF () |
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 ParseEOF for a description of how this class parses its object.
YGP::CBParseEOF::CBParseEOF | ( | PARSECALLBACK | callback | ) | [inline] |
Constructor; with callback to call if object is found.
YGP::CBParseEOF::~CBParseEOF | ( | ) | [virtual] |
Destructor.
int YGP::CBParseEOF::found | ( | const char * | pFoundValue, | |
unsigned int | len | |||
) | [protected, virtual] |
Calls the defined callback with the passed parameters and returns its result.
pFoundValue | Pointer to found value | |
len | Length of found data |
Reimplemented from YGP::ParseObject.
void YGP::CBParseEOF::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.