Inheritance diagram for sword::CommandLineOption< T >:

Public Types | |
| typedef std::vector< T > | Values |
Public Methods | |
| CommandLineOption (CommandLineManager &manager, char shortName, const std::string &longName, const std::string &help, bool acceptMultiple, const T &value=T()) | |
| word | size () const |
| Number of values which were set for this option. | |
| T | value (word i=0) const |
| Get a value. | |
| const Values & | values () const |
| Get all values as a std::vector<T>. | |
| bool | isSet () const |
| has this option been set | |
Protected Methods | |
| virtual void | push_ (const std::string &value) |
| virtual void | toggle_ (bool onOff) |
| void | print_ (std::ostream &os, size_t ll) const |
Protected Attributes | |
| char | shortName_ |
| std::string | longName_ |
| std::string | help_ |
| bool | acceptValue_ |
| bool | acceptMultiple_ |
| bool | gotOne_ |
| bool | used_ |
| CommandLineManager & | manager_ |
Details about using this class are available in the CommandLineManager class.
|
|
has this option been set A 'false' result does not necessarily means that no value is available, as the default value can also be retrieved. |
|
|||||||||
|
Number of values which were set for this option.
|
|
||||||||||
|
Get a value.
|
|
|||||||||
|
Get all values as a std::vector<T>.
|
1.3-rc2