#include <ArgumentParser.h>


Public Member Functions | |
| Argument (T *t, char sn, string ln, string h, bool m) | |
| Constructor. | |
| void | printValue () const |
| General case for printing default value. | |
Private Member Functions | |
| bool | read (std::list< std::string > &str) |
| Try to read argument value from an input stream. | |
Private Attributes | |
| T * | ptr |
| Pointer to the parameter. | |
Contains a pointer to a value which can be parsed by a ArgumentParser.Contains also a short name, a long name and a help message.
Definition at line 104 of file ArgumentParser.h.
| sofa::helper::Argument< T >::Argument | ( | T * | t, | |
| char | sn, | |||
| string | ln, | |||
| string | h, | |||
| bool | m | |||
| ) | [inline] |
Constructor.
| t | a pointer to the value | |
| sn | short name of the argument | |
| ln | long name of the argument | |
| h | help on the argument | |
| m | true iff the argument is mandatory |
Definition at line 114 of file ArgumentParser.h.
General case for printing default value.
Implements sofa::helper::ArgumentBase.
Definition at line 203 of file ArgumentParser.h.
References sofa::helper::Argument< T >::ptr.
| bool sofa::helper::Argument< T >::read | ( | std::list< std::string > & | str | ) | [inline, private, virtual] |
Try to read argument value from an input stream.
Return false if failed
Implements sofa::helper::ArgumentBase.
Definition at line 129 of file ArgumentParser.h.
References sofa::helper::ArgumentBase::isSet, and sofa::helper::Argument< T >::ptr.
T* sofa::helper::Argument< T >::ptr [private] |
Pointer to the parameter.
Definition at line 123 of file ArgumentParser.h.
Referenced by sofa::helper::Argument< T >::printValue(), and sofa::helper::Argument< T >::read().
1.5.7.1