YGP::OFParseText< T > Class Template Reference

Class to parse text til a certain abort-criteria with callback-found (called if an object was found). More...

Inherits YGP::ParseText.

List of all members.

Public Member Functions

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

Protected Member Functions

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


Detailed Description

template<class T>
class YGP::OFParseText< T >

Class to parse text til a certain abort-criteria with callback-found (called if an object was found).

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::OFParseText< T >::OFParseText ( const char *  abort,
const char *  description,
T &  objToNotify,
PTCALLBACK  callback,
unsigned int  max,
unsigned int  min = 1,
bool  skipWhitespace = true 
) [inline]

Constructor; with callback to call if object is found.

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

Copy constructor.

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

Destructor.


Member Function Documentation

template<class T>
virtual int YGP::OFParseText< 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>
OFParseText& YGP::OFParseText< T >::operator= ( const OFParseText< 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