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

stringparser.h File Reference


Detailed Description

Very basic parser to support object construction from a string specification.

Header
/u/nn/cvsroot/lissom/src/stringparser.h,v 1.28 2003/01/16 04:11:58 jbednar Exp

Definition in file stringparser.h.

#include <string>
#include <strstream>
#include <vector>
#include "tristate.h"

Include dependency graph for stringparser.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  StringArgs
 Simple string-based function argument parser using StringParser. More...

class  StringParser
 This class provides a basic way for values of various types to be specified in a string. More...


Defines

#define BASICPARSE_DEF(T)
 This was once a template, but the template was replaced with a macro to avoid an "Internal compiler error" in GCC 2.95.


Define Documentation

#define BASICPARSE_DEF  
 

Value:

static T& basicparse(const string& s, T& x)                     \
    {  std::istrstream ss(s.c_str(),s.length()); ss >> x; return x;  }
This was once a template, but the template was replaced with a macro to avoid an "Internal compiler error" in GCC 2.95.

To restore the template, just replace the first line of the define with:

    template <class T>
    

and remove the backslashes and the macro calls.

Definition at line 130 of file stringparser.h.


Generated on Mon Jan 20 02:36:48 2003 for RF-LISSOM by doxygen1.3-rc2