#include <option.hh>
Inheritance diagram for mpcl::util::prefs::TOption:

Public Methods | |
| TOption (void) | |
| Build a new instance. | |
| TOption (const TOption &rktSOURCE_OPTION) | |
| TOption (const TString &rkyNAME, const TString &rkySHORTCUT) | |
| TOption (const TString &rkyNAME, const TString &rkySHORTCUT, const TString &rkyDEFAULT_VALUE) | |
| virtual | ~TOption (void) |
| Destroys the instance. | |
| void | addValue (const TString &rkyVALUE) |
| TOption & | operator= (const TOption &rktSOURCE_OPTION) |
| Copies rktSOURCE_OPTION onto this instance. | |
| void | setCmdLinePresence (void) |
| Obliges this option to appear in command-line. | |
| void | setUsageString (const TString &rkyVALUE) |
| void | setValue (const TString &rkyVALUE) |
| const TString & | getValue (void) const throw (TNotParameterAbleException) |
| const std::vector< TString > & | getValues (void) const throw (TNotParameterAbleException) |
| bool | hasValue (const TString &rkySOURCE_VALUE) const |
| TString | help (void) const |
| bool | isAtCmdLine (void) const |
| bool | isEmpty (void) const |
| bool | isParameterAble (void) const |
| TString | name (void) const |
| const TString & | operator[] (size_type zINDEX) const |
| TString & | operator[] (size_type zINDEX) |
| bool | operator== (const TOption &rktSOURCE_OPTION) const |
| TString | shortcut (void) const |
| size_type | valueCount (void) const |
Protected Methods | |
| void | write (std::basic_ostream< char_type, traits_type > &rtTARGET_OSTREAM) const |
Definition at line 55 of file util/prefs/option.hh.
|
|
Build a new instance from another.
Definition at line 121 of file util/prefs/option.hh. |
|
||||||||||||
|
Builds a new instance. Now this is an option with no value.
Definition at line 136 of file util/prefs/option.hh. References mpcl::text::TString. |
|
||||||||||||||||
|
Builds a new instance. Now this is an option that can contain a value.
Definition at line 152 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Adds rkyVALUE as the last value of this instance.
Definition at line 171 of file util/prefs/option.hh. References mpcl::text::TString. Referenced by setValue(). |
|
|
Get last value in value collection.
Definition at line 232 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Gets a vector with input values (from command-line, or from standard input).
Definition at line 247 of file util/prefs/option.hh. |
|
|
Returns true if it has rkySOURCE_VALUE as value.
Definition at line 41 of file option.cc. References mpcl::text::TString. |
|
|
Get help string
Definition at line 268 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Returns true if option is at command line.
Definition at line 277 of file util/prefs/option.hh. |
|
|
Returns true if it has no value from any source.
Definition at line 286 of file util/prefs/option.hh. |
|
|
Returns true if option can have parameters.
Definition at line 295 of file util/prefs/option.hh. |
|
|
Get name.
Definition at line 304 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Returns true if this instance and rktSOURCE_OPTION have equal value. This method is required by container classes.
Definition at line 335 of file util/prefs/option.hh. References yName. |
|
|
Gets value at position zINDEX.
Definition at line 324 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Gets value at position zINDEX.
Definition at line 314 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Sets rkyVALUE as the help string associated to this option.
Definition at line 206 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Sets rkyVALUE as the unique value of this instance.
Definition at line 215 of file util/prefs/option.hh. References addValue(), and mpcl::text::TString. |
|
|
Get short name alias for command-line.
Definition at line 344 of file util/prefs/option.hh. References mpcl::text::TString. |
|
|
Gets number of values.
Definition at line 353 of file util/prefs/option.hh. |
|
|
Writes the instance onto stream rtTARGET_STREAM.
Implements mpcl::io::IOutputStreamable< TChar, TTraits >. |
1.2.18