YGP::ParseText Class Reference

Class to parse text until specified abort-characters are found. More...

Inherits YGP::ParseAttomic.

Inherited by YGP::OFParseText< INISection >, YGP::CBParseText, YGP::OFParseText< T >, YGP::ParseQuoted, and YGP::ParseTextEsc.

List of all members.

Public Member Functions

 ParseText (const char *abort, const char *description, unsigned int max, unsigned int min=1, bool skipWhitespace=true, bool reportData=true)
 ParseText (const ParseText &other)
virtual ~ParseText ()
ParseTextoperator= (const ParseText &other)

Protected Member Functions

virtual int checkValue (char ch)


Detailed Description

Class to parse text until specified abort-characters are found.

Parsing of this element is stopped, if any of the characters in the abort-parameters is found (or the maximal cardinality is reached).

See ParseObject for a general description of the parser.


Constructor & Destructor Documentation

YGP::ParseText::ParseText ( const char *  abort,
const char *  description,
unsigned int  max,
unsigned int  min = 1,
bool  skipWhitespace = true,
bool  reportData = true 
) [inline]

Constructor.

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

Copy constructor.

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

Destructor.


Member Function Documentation

int YGP::ParseText::checkValue ( char  ch  )  [protected, virtual]

Checks if the parsed value is according the abort-list of the object.

Valid are every characters NOT in pValue.

Parameters:
ch Char to check
Returns:
int Result; true if ch does not match any of those values.

Reimplemented from YGP::ParseAttomic.

Reimplemented in YGP::ParseTextEsc, YGP::ParseQuoted, and YGP::ParseQuotedEsc.

ParseText& YGP::ParseText::operator= ( const ParseText other  )  [inline]

Assignment operator.


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