YGP::OFParseToText< T > Class Template Reference

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

Inherits YGP::ParseToText.

List of all members.

Public Member Functions

 OFParseToText (const char *abort, const char *description, T &objToNotify, PTCALLBACK callback, unsigned int max=1, unsigned int min=1, bool skipWhitespace=true)
 OFParseToText (const OFParseToText &other)
virtual ~OFParseToText ()
OFParseToTextoperator= (const OFParseToText &other)

Protected Member Functions

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


Detailed Description

template<class T>
class YGP::OFParseToText< T >

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 ParseText for a description of how this class parses its object.


Constructor & Destructor Documentation

template<class T >
YGP::OFParseToText< T >::OFParseToText ( const char *  abort,
const char *  description,
T &  objToNotify,
PTCALLBACK  callback,
unsigned int  max = 1,
unsigned int  min = 1,
bool  skipWhitespace = true 
) [inline]

Constructor; with callback to call if object is found.

template<class T >
YGP::OFParseToText< T >::OFParseToText ( const OFParseToText< T > &  other  )  [inline]

Copy constructor.

template<class T >
virtual YGP::OFParseToText< T >::~OFParseToText (  )  [inline, virtual]

Destructor.


Member Function Documentation

template<class T >
virtual int YGP::OFParseToText< T >::found ( const char *  pFoundValue,
unsigned int  len 
) [inline, protected, virtual]

The object was parsed successfully: Notify via the callback.

Reimplemented from YGP::ParseObject.

template<class T >
OFParseToText& YGP::OFParseToText< T >::operator= ( const OFParseToText< T > &  other  )  [inline]

Assignment operator.


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