Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

ParamStringParser< MapT, ParserT > Class Template Reference

#include <expressionparser.h>

Inheritance diagram for ParamStringParser< MapT, ParserT >:

Inheritance graph
[legend]
Collaboration diagram for ParamStringParser< MapT, ParserT >:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<class MapT = PointerLookup<Typeless>, class ParserT = ExpressionParser<MapT>>
class ParamStringParser< MapT, ParserT >

Cleaner interface to the parsing functions.

Use this for new code, instead of anything in ExprParser or ExpressionParser.

Definition at line 199 of file expressionparser.h.

Public Types

typedef ParserT ParserType
typedef MapT MapType

Public Methods

 ParamStringParser (MapType &m)
virtual StringParserclone () const
 Return a duplicate of the current object.

virtual double & parse (const string &s, double &x) const
 Parse into a double.

virtual int & parse (const string &s, int &x) const
 Parse into an int.

virtual Tristateparse (const string &s, Tristate &x) const
 Parse into a Tristate.

virtual string & parse (const string &s, string &x) const
 Parse into a string.

virtual double *& parse (const string &s, double *&x) const
 Parse into a pointer to a double.

virtual int *& parse (const string &s, int *&x) const
 Parse into a pointer to an int.

virtual Tristate *& parse (const string &s, Tristate *&x) const
 Parse into a pointer to a Tristate.

virtual string *& parse (const string &s, string *&x) const
 Parse into a pointer to a string.

virtual string parse (const string &s) const
 Short version of parse() for simple string substitution.

virtual arglistparse (const string &s, arglist &x) const
 Parse into a vector of strings by breaking at word boundaries.

virtual void error (const string &s) const
 This implementation ignores errors (since it doesn't generate any), but derived classes may redefine this function if they wish (for instance, to write messages to the console).


The documentation for this class was generated from the following file:
Generated on Mon Jan 20 02:37:09 2003 for RF-LISSOM by doxygen1.3-rc2