EvolvingObjects
Parameters management

A parameter is basically an object that stores a value and that can read/print it from/on streams. More...

Classes

class  eoMissingParamException
class  eoWrongParamTypeException
class  eoParam
 eoParam: Base class for monitoring and parsing parameters More...
class  eoValueParam< ValueType >
 eoValueParam<ValueType>: templatized derivation of eoParam. More...
class  eoParamParamType
 Another helper class for parsing parameters like Keyword(arg1, arg2, ...) More...
class  eoParameterLoader
 Parameter saving and loading. More...
class  eoParser
 eoParser: command line parser and configuration file reader This class is persistent, so it can be stored and reloaded to restore parameter settings. More...

Functions

std::ostream & operator<< (std::ostream &_os, const eoParamParamType &_rate)
std::istream & operator>> (std::istream &_is, eoParamParamType &_rate)
std::string eoValueParam< std::string >::getValue (void) const
 Get the string representation of the value.
void eoValueParam< bool >::setValue (const std::string &_value)
 Set the value according to the speciied string.
std::string eoValueParam< std::pair< double, double > >::getValue (void) const
 Get the string representation of the value.
void eoValueParam< std::pair< double, double > >::setValue (const std::string &_value)
 Set the value according to the speciied string.
std::string eoValueParam< std::vector< double > >::getValue (void) const
 Get the string representation of the value.
void eoValueParam< std::vector< double > >::setValue (const std::string &_value)
 Set the value according to the speciied string.

Detailed Description

A parameter is basically an object that stores a value and that can read/print it from/on streams.

It is mainly used for command-line options (see eoParser) and eoStat.


Function Documentation

void eoValueParam< bool >::setValue ( const std::string &  _value) [inline, virtual]

Set the value according to the speciied string.

For scalar types the textual represenation is typically quite straigtforward.

For vector<double> we expect a list of numbers, where the first is an unsigned integer taken as the length ot the vector and then successively the vector elements. Vector elements can be separated by ',', ';', or ' '. Note, however, that eoParser does not deal correctly with parameter values contianing spaces (' ').

Parameters:
_valueTextual representation of the new value

Implements eoParam.

Definition at line 224 of file eoParam.h.

std::string eoValueParam< std::pair< double, double > >::getValue ( void  ) const [inline, virtual]

Get the string representation of the value.

Implements eoParam.

Definition at line 203 of file eoParam.h.

void eoValueParam< std::pair< double, double > >::setValue ( const std::string &  _value) [inline, virtual]

Set the value according to the speciied string.

For scalar types the textual represenation is typically quite straigtforward.

For vector<double> we expect a list of numbers, where the first is an unsigned integer taken as the length ot the vector and then successively the vector elements. Vector elements can be separated by ',', ';', or ' '. Note, however, that eoParser does not deal correctly with parameter values contianing spaces (' ').

Parameters:
_valueTextual representation of the new value

Implements eoParam.

Definition at line 224 of file eoParam.h.

std::string eoValueParam< std::vector< double > >::getValue ( void  ) const [inline, virtual]

Get the string representation of the value.

Implements eoParam.

Definition at line 203 of file eoParam.h.

void eoValueParam< std::vector< double > >::setValue ( const std::string &  _value) [inline, virtual]

Set the value according to the speciied string.

For scalar types the textual represenation is typically quite straigtforward.

For vector<double> we expect a list of numbers, where the first is an unsigned integer taken as the length ot the vector and then successively the vector elements. Vector elements can be separated by ',', ';', or ' '. Note, however, that eoParser does not deal correctly with parameter values contianing spaces (' ').

Parameters:
_valueTextual representation of the new value

Implements eoParam.

Definition at line 224 of file eoParam.h.

 All Classes Namespaces Files Functions Variables Typedefs Friends