#include <argumentParser.h>


Definition at line 23 of file argumentParser.h.
Public Types | |
| typedef std::string | string |
| character string | |
Public Member Functions | |
| ArgumentBase (char s, string l, string h, bool m) | |
| Constructor. | |
| virtual | ~ArgumentBase () |
| Base destructor: does nothing. | |
| virtual bool | read (std::list< std::string > &str)=0 |
| Read the command line. | |
| virtual void | printValue () const =0 |
| Print the value of the associated variable. | |
| void | print () const |
| print short name, long name, help | |
Data Fields | |
| char | shortName |
| Short name. | |
| string | longName |
| Long name. | |
| string | help |
| Help message. | |
| bool | mandatory |
| True iff the value must be set. | |
| bool | isSet |
| True iff a value has bee read on the command line. | |
| typedef std::string ArgumentBase::string |
Constructor.
| s | short name | |
| l | long name | |
| h | help | |
| m | true iff the argument is mandatory |
Definition at line 34 of file argumentParser.h.
| virtual ArgumentBase::~ArgumentBase | ( | ) | [inline, virtual] |
| virtual bool ArgumentBase::read | ( | std::list< std::string > & | str | ) | [pure virtual] |
Read the command line.
Implemented in Argument< T >, Argument< T >, Argument< T >, Argument< T >, Argument< T >, and Argument< T >.
| virtual void ArgumentBase::printValue | ( | ) | const [pure virtual] |
Print the value of the associated variable.
Implemented in Argument< T >, and Argument< T >.
Referenced by print(), and sofa::helper::ArgumentBase::print().
| void ArgumentBase::print | ( | ) | const [inline] |
print short name, long name, help
Definition at line 56 of file argumentParser.h.
References help, longName, mandatory, printValue(), and shortName.
Short name.
Definition at line 51 of file argumentParser.h.
Referenced by ArgumentParser::operator()(), ArgumentParser::option(), ArgumentParser::parameter(), print(), and sofa::helper::ArgumentBase::print().
Long name.
Definition at line 52 of file argumentParser.h.
Referenced by ArgumentParser::operator()(), ArgumentParser::option(), ArgumentParser::parameter(), print(), and sofa::helper::ArgumentBase::print().
Help message.
Definition at line 53 of file argumentParser.h.
Referenced by print(), and sofa::helper::ArgumentBase::print().
True iff the value must be set.
Definition at line 65 of file argumentParser.h.
Referenced by print(), and sofa::helper::ArgumentBase::print().
True iff a value has bee read on the command line.
Definition at line 68 of file argumentParser.h.
Referenced by Argument< T >::read().
1.5.3