YGP::CBParseSkip Class Reference

Class to skip some characters (from the current position in the stream). More...

Inherits YGP::ParseSkip.

List of all members.

Public Member Functions

 CBParseSkip (unsigned int bytes, PARSECALLBACK callback)
 CBParseSkip (const CBParseSkip &other)
virtual ~CBParseSkip ()
CBParseSkipoperator= (const CBParseSkip &)
void setCallback (PARSECALLBACK callback)

Protected Member Functions

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


Detailed Description

Class to skip some characters (from the current position in the stream).

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


Constructor & Destructor Documentation

YGP::CBParseSkip::CBParseSkip ( unsigned int  bytes,
PARSECALLBACK  callback 
) [inline]

Constructor; with callback to call if object is found.

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

Copy constructor.

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

Destructor.


Member Function Documentation

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

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

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

Reimplemented from YGP::ParseObject.

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

Assignment-operator.

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

void YGP::CBParseSkip::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:27 2009 by doxygen 1.5.8