Inherits YGP::ParseQuotedEsc.
Public Member Functions | |
CBParseQuotedEsc (char quote, const char *description, PARSECALLBACK callback, unsigned int max, unsigned int min=1, char escape= '\\', bool skipWhitespace=true) | |
CBParseQuotedEsc (const CBParseQuotedEsc &other) | |
virtual | ~CBParseQuotedEsc () |
CBParseQuotedEsc & | operator= (const CBParseQuotedEsc &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 ParseQuotedEsc for a description of how this class parses its object.
YGP::CBParseQuotedEsc::CBParseQuotedEsc | ( | char | quote, | |
const char * | description, | |||
PARSECALLBACK | callback, | |||
unsigned int | max, | |||
unsigned int | min = 1 , |
|||
char | escape = '\\' , |
|||
bool | skipWhitespace = true | |||
) | [inline] |
Constructor; with callback to call if object is found.
YGP::CBParseQuotedEsc::CBParseQuotedEsc | ( | const CBParseQuotedEsc & | other | ) | [inline] |
Copy constructor.
YGP::CBParseQuotedEsc::~CBParseQuotedEsc | ( | ) | [virtual] |
Destructor.
int YGP::CBParseQuotedEsc::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.
CBParseQuotedEsc & YGP::CBParseQuotedEsc::operator= | ( | const CBParseQuotedEsc & | other | ) |
void YGP::CBParseQuotedEsc::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.