Inherits YGP::ParseTextEsc.
Public Member Functions | |
CBParseTextEsc (const char *abort, const char *description, PARSECALLBACK callback, unsigned int max, unsigned int min=1, char escape= '\\', bool skipWhitespace=true) | |
CBParseTextEsc (const CBParseTextEsc &other) | |
virtual | ~CBParseTextEsc () |
CBParseTextEsc & | operator= (const CBParseTextEsc &other) |
void | setCallback (PARSECALLBACK callback) |
Protected Member Functions | |
virtual int | found (const char *pFoundValue, unsigned int len) |
This abort-characters can be escaped
See ParseObject for a general description of the parser and ParseTextEsc for a description of how this class parses its object.
YGP::CBParseTextEsc::CBParseTextEsc | ( | const char * | abort, | |
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::CBParseTextEsc::CBParseTextEsc | ( | const CBParseTextEsc & | other | ) | [inline] |
Copy constructor.
YGP::CBParseTextEsc::~CBParseTextEsc | ( | ) | [virtual] |
Destructor.
int YGP::CBParseTextEsc::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.
CBParseTextEsc & YGP::CBParseTextEsc::operator= | ( | const CBParseTextEsc & | other | ) |
void YGP::CBParseTextEsc::setCallback | ( | PARSECALLBACK | callback | ) | [inline] |
Sets the callback to the passed value.