EvolvingObjects
|
eoParam: Base class for monitoring and parsing parameters More...
#include <eoParam.h>
Public Member Functions | |
eoParam () | |
Empty constructor - called from outside any parser. | |
eoParam (std::string _longName, std::string _default, std::string _description, char _shortName=0, bool _required=false) | |
Construct a Param. | |
virtual | ~eoParam () |
Virtual destructor is needed. | |
virtual std::string | getValue () const =0 |
Pure virtual function to get the value out. | |
virtual void | setValue (const std::string &_value)=0 |
Pure virtual function to set the value. | |
char | shortName () const |
Returns the short name. | |
const std::string & | longName () const |
Returns the long name. | |
const std::string & | description () const |
Returns the description of the argument. | |
const std::string & | defValue () const |
Returns the default value of the argument. | |
void | defValue (const std::string &str) |
Sets the default value of the argument,. | |
void | setLongName (std::string _longName) |
ALlows to change the name (see the prefix in eoParser.h) | |
bool | required () const |
Returns if required or not. | |
Private Attributes | |
std::string | repLongName |
std::string | repDefault |
std::string | repDescription |
char | repShortHand |
bool | repRequired |
eoParam::eoParam | ( | std::string | _longName, |
std::string | _default, | ||
std::string | _description, | ||
char | _shortName = 0 , |
||
bool | _required = false |
||
) | [inline] |