Inherits YGP::ParseSelection.
Public Member Functions | |
| CBParseSelection (ParseObject *apObjectList[], const char *description, PARSECALLBACK callback, unsigned int max=1, unsigned int min=1, bool skipWhitespace=true) | |
| CBParseSelection (const CBParseSelection &other) | |
| virtual | ~CBParseSelection () |
| CBParseSelection & | operator= (const CBParseSelection &other) |
| void | setCallback (PARSECALLBACK callback) |
Protected Member Functions | |
| virtual int | found (const char *pFoundValue, unsigned int len) |
Every ParseObject).
See ParseObject for a general description of the parser and ParseSelection for a description of how this class parses its object.
| YGP::CBParseSelection::CBParseSelection | ( | 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::CBParseSelection::CBParseSelection | ( | const CBParseSelection & | other | ) | [inline] |
Copy constructor.
| YGP::CBParseSelection::~CBParseSelection | ( | ) | [virtual] |
Destructor.
| int YGP::CBParseSelection::found | ( | const char * | pFoundValue, | |
| unsigned int | len | |||
| ) | [protected, virtual] |
Callback if an object was found.
| pFoundValue | Pointer to found value | |
| len | Length of found data |
Reimplemented from YGP::ParseObject.
| CBParseSelection & YGP::CBParseSelection::operator= | ( | const CBParseSelection & | other | ) |
| void YGP::CBParseSelection::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.