YGP::CBParseExact Class Reference

Class to parse exactly a certain text (case-sensitive!). More...

Inherits YGP::ParseExact.

List of all members.

Public Member Functions

 CBParseExact (const char *value, const char *description, PARSECALLBACK callback, bool skipWhitespace=true)
 CBParseExact (const char *value, const char *description, PARSECALLBACK callback, unsigned int max, unsigned int min, bool skipWhitespace=true)
 CBParseExact (const CBParseExact &other)
virtual ~CBParseExact ()
CBParseExactoperator= (const CBParseExact &other)
void setCallback (PARSECALLBACK callback)

Protected Member Functions

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


Detailed Description

Class to parse exactly a certain text (case-sensitive!).

If an object is found the passed callback is called

See ParseObject for a general description of the parser and ParseExact for a description of how this class parses its object.


Constructor & Destructor Documentation

YGP::CBParseExact::CBParseExact ( const char *  value,
const char *  description,
PARSECALLBACK  callback,
bool  skipWhitespace = true 
) [inline]

Constructor; with callback to call if object is found.

YGP::CBParseExact::CBParseExact ( const char *  value,
const char *  description,
PARSECALLBACK  callback,
unsigned int  max,
unsigned int  min,
bool  skipWhitespace = true 
) [inline]

Constructor setting explicit the length ot the data to parse; with callback to call if object is found.

YGP::CBParseExact::CBParseExact ( const CBParseExact other  )  [inline]

Copy constructor.

YGP::CBParseExact::~CBParseExact (  )  [virtual]

Destructor.


Member Function Documentation

int YGP::CBParseExact::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.

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

Assignment-operator.

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

void YGP::CBParseExact::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