YGP::OFParseExact< T > Class Template Reference

Class to parse exactly a certain text (case-sensitive!). More...

Inherits YGP::ParseExact.

List of all members.

Public Member Functions

 OFParseExact (const char *value, const char *description, T &objToNotify, PTCALLBACK callback, bool skipWhitespace=true)
 OFParseExact (const char *value, const char *description, T &objToNotify, PTCALLBACK callback, unsigned int max, unsigned int min, bool skipWhitespace=true)
 OFParseExact (const OFParseExact &other)
virtual ~OFParseExact ()
OFParseExactoperator= (const OFParseExact &other)

Protected Member Functions

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


Detailed Description

template<class T>
class YGP::OFParseExact< T >

Class to parse exactly a certain text (case-sensitive!).

If an object is found the passed callback is called

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


Constructor & Destructor Documentation

template<class T >
YGP::OFParseExact< T >::OFParseExact ( const char *  value,
const char *  description,
T &  objToNotify,
PTCALLBACK  callback,
bool  skipWhitespace = true 
) [inline]

Constructor; with callback to call if object is found.

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

Constructor; with callback to call if object is found.

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

Copy constructor.

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

Destructor.


Member Function Documentation

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