Inherits YGP::ParseQuoted.
Public Member Functions | |
CBParseQuoted (char quote, const char *description, PARSECALLBACK callback, unsigned int max, unsigned int min=1, bool skipWhitespace=true) | |
CBParseQuoted (const CBParseQuoted &other) | |
virtual | ~CBParseQuoted () |
CBParseQuoted & | operator= (const CBParseQuoted &other) |
void | setCallback (PARSECALLBACK callback) |
Protected Member Functions | |
virtual int | found (const char *pFoundValue, unsigned int len) |
If an object is found, the passed callback is executed.
See ParseObject for a general description of the parser and ParseQuoted for a description of how this class parses its object.
YGP::CBParseQuoted::CBParseQuoted | ( | char | quote, | |
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::CBParseQuoted::CBParseQuoted | ( | const CBParseQuoted & | other | ) | [inline] |
Copy constructor.
YGP::CBParseQuoted::~CBParseQuoted | ( | ) | [virtual] |
Destructor.
int YGP::CBParseQuoted::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.
CBParseQuoted & YGP::CBParseQuoted::operator= | ( | const CBParseQuoted & | other | ) |
void YGP::CBParseQuoted::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.