YGP::CBParseToText Class Reference

Class to parse text until the specified text is found. More...

Inherits YGP::ParseToText.

List of all members.

Public Member Functions

 CBParseToText (const char *value, const char *description, PARSECALLBACK callback, unsigned int max=1, unsigned int min=1, bool skipWhitespace=true)
 CBParseToText (const CBParseToText &other)
CBParseToTextoperator= (const CBParseToText &other)
void setCallback (PARSECALLBACK callback)

Protected Member Functions

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


Detailed Description

Class to parse text until the specified text is found.

Parsing of this element is stopped, after the specified text is found (or the maximal cardinality is reached).

If this text has been found, the callback is called with the name of the scanned text passed als first parameter and the number of found entries as second.

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


Constructor & Destructor Documentation

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

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

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

Sets the callback to the passed value.


Member Function Documentation

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

Callback if an object was found.

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

Reimplemented from YGP::ParseObject.

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

Sets the callback to the passed value.


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

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