gridripper::util::ArgsParser Class Reference

Argument list parsing. More...

#include <ArgsParser.h>

List of all members.

Public Member Functions

 ArgsParser (const string &args, const ParameterPreprocessor *pp)
 Creates an argument list parser.
bool next ()
 Parses the next assignment.
const string & name ()
 Gets the left side of the assignment.
string stringValue ()
 Gets the value as a string.
int intValue () throw (IllegalArgumentException&)
 Gets the value as an integer.
GReal_t realValue () throw (IllegalArgumentException&)
 Gets the value as a real number.


Detailed Description

Argument list parsing.

Version:
0.5, 08/17/2008
Since:
GridRipper 0.5, 05/30/2008
Author:
Peter Csizmadia

Constructor & Destructor Documentation

gridripper::util::ArgsParser::ArgsParser ( const string &  args,
const ParameterPreprocessor pp 
)

Creates an argument list parser.

Parameters:
args the string containing the arguments
pp a parameter preprocessor or NULL


Member Function Documentation

bool gridripper::util::ArgsParser::next (  ) 

Parses the next assignment.

Returns:
true if it parsed the next assignment successfully, false if there is no more assignments

const string& gridripper::util::ArgsParser::name (  )  [inline]

Gets the left side of the assignment.

Returns:
the name part of the definition

string gridripper::util::ArgsParser::stringValue (  )  [inline]

Gets the value as a string.

Returns:
the string

int gridripper::util::ArgsParser::intValue (  )  throw (IllegalArgumentException&)

Gets the value as an integer.

Returns:
the integer

GReal_t gridripper::util::ArgsParser::realValue (  )  throw (IllegalArgumentException&)

Gets the value as a real number.

Returns:
the number


The documentation for this class was generated from the following file:

Generated on Wed Jun 17 18:46:59 2009 for GridRipper by  doxygen 1.5.6