Inherits YGP::ParseSequence.
Public Member Functions | |
CBParseSequence (ParseObject *apObjectList[], const char *description, PARSECALLBACK callback, unsigned int max=1, unsigned int min=1, bool skipWhitespace=true) | |
CBParseSequence (const CBParseSequence &other) | |
virtual | ~CBParseSequence () |
CBParseSequence & | operator= (const CBParseSequence &other) |
void | setCallback (PARSECALLBACK callback) |
Protected Member Functions | |
virtual int | found (const char *pFoundValue, unsigned int len) |
Every ParseObject in this list must be found (in the same order).
See ParseObject for a general description of the parser and ParseSequence for a description of how this class parses its object.
YGP::CBParseSequence::CBParseSequence | ( | ParseObject * | apObjectList[], | |
const char * | description, | |||
PARSECALLBACK | callback, | |||
unsigned int | max = 1 , |
|||
unsigned int | min = 1 , |
|||
bool | skipWhitespace = true | |||
) | [inline] |
Constructor; with callback to call if object is found.
YGP::CBParseSequence::CBParseSequence | ( | const CBParseSequence & | other | ) | [inline] |
Copy constructor.
YGP::CBParseSequence::~CBParseSequence | ( | ) | [virtual] |
Destructor.
int YGP::CBParseSequence::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.
CBParseSequence & YGP::CBParseSequence::operator= | ( | const CBParseSequence & | other | ) |
void YGP::CBParseSequence::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.