YGP::CBParseSelection Class Reference

Class to parse selections (list of ParseObjects where just one entry must be valid). More...

Inherits YGP::ParseSelection.

List of all members.

Public Member Functions

 CBParseSelection (ParseObject *apObjectList[], const char *description, PARSECALLBACK callback, unsigned int max=1, unsigned int min=1, bool skipWhitespace=true)
 CBParseSelection (const CBParseSelection &other)
virtual ~CBParseSelection ()
CBParseSelectionoperator= (const CBParseSelection &other)
void setCallback (PARSECALLBACK callback)

Protected Member Functions

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


Detailed Description

Class to parse selections (list of ParseObjects where just one entry must be valid).

Every ParseObject).

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


Constructor & Destructor Documentation

YGP::CBParseSelection::CBParseSelection ( ParseObject apObjectList[],
const char *  description,
PARSECALLBACK  callback,
unsigned int  max = 1,
unsigned int  min = 1,
bool  skipWhitespace = true 
) [inline]

Constructor; with callback to call if object is found.

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

Copy constructor.

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

Destructor.


Member Function Documentation

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

Callback if an object was found.

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

Reimplemented from YGP::ParseObject.

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

Assignment-operator.

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

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