#include <argumentParser.h>


Public Types | |
| typedef std::string | string |
| character string | |
| 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 | |
| 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. | |
Definition at line 47 of file argumentParser.h.
| typedef std::string ArgumentBase::string |
| typedef std::string ArgumentBase::string |
Constructor.
| s | short name | |
| l | long name | |
| h | help | |
| m | true iff the argument is mandatory |
Definition at line 58 of file argumentParser.h.
| virtual ArgumentBase::~ArgumentBase | ( | ) | [inline, virtual] |
Constructor.
| s | short name | |
| l | long name | |
| h | help | |
| m | true iff the argument is mandatory |
Definition at line 60 of file argumentParser.h.
| virtual ArgumentBase::~ArgumentBase | ( | ) | [inline, virtual] |
| void ArgumentBase::print | ( | ) | const [inline] |
print short name, long name, help
Definition at line 82 of file argumentParser.h.
References help, longName, mandatory, printValue(), and shortName.
| void ArgumentBase::print | ( | ) | const [inline] |
print short name, long name, help
Definition at line 80 of file argumentParser.h.
References help, longName, mandatory, printValue(), and shortName.
| virtual void ArgumentBase::printValue | ( | ) | const [pure virtual] |
Print the value of the associated variable.
Implemented in 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 >, Argument< T >, and Argument< T >.
Referenced by print().
| 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 >, Argument< T >, Argument< T >, Argument< T >, and Argument< T >.
| 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 >, Argument< T >, Argument< T >, Argument< T >, and Argument< T >.
True iff a value has bee read on the command line.
Definition at line 92 of file argumentParser.h.
Referenced by Argument< T >::read().
True iff the value must be set.
Definition at line 89 of file argumentParser.h.
Referenced by print().
1.5.7.1