YGP::CBParseTextEsc Class Reference

Class to parse text til a certain abort-criteria (as in CBParseText). More...

Inherits YGP::ParseTextEsc.

List of all members.

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 ()
CBParseTextEscoperator= (const CBParseTextEsc &other)
void setCallback (PARSECALLBACK callback)

Protected Member Functions

virtual int found (const char *pFoundValue, unsigned int len)


Detailed Description

Class to parse text til a certain abort-criteria (as in CBParseText).

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

int YGP::CBParseTextEsc::found ( const char *  pFoundValue,
unsigned int  len 
) [protected, virtual]

Calls the defined callback with the passed parameter and returns its result.

Parameters:
pFoundValue Pointer to found value
len Length of found data
Returns:
int: Status; 0 OK

Reimplemented from YGP::ParseObject.

CBParseTextEsc & YGP::CBParseTextEsc::operator= ( const CBParseTextEsc other  ) 

Assignment-operator.

Parameters:
other Object to clone
Returns:
CBParseTextEsc& Reference to this

void YGP::CBParseTextEsc::setCallback ( PARSECALLBACK  callback  )  [inline]

Sets the callback to the passed value.


The documentation for this class was generated from the following files:

YGP Version 0.9.31 - Generated on Wed Nov 18 11:25:28 2009 by doxygen 1.5.8