#include <conf.hh>
Public Member Functions | |
| Option () | |
| long | get_int () const |
| Return the integer value of the option. | |
| float | get_float () const |
| Return the float value of the option. | |
| double | get_double () const |
| Return the double value of the option. | |
| const std::string & | get_str () const |
| Return the string of the option. | |
| const char * | get_c_str () const |
| Return the string of the option. | |
Public Attributes | |
| unsigned char | short_name |
| The short name used for command line. | |
| std::string | long_name |
| The long name used also in configuration files. | |
| std::string | value |
| The value parsed from command line or file. | |
| bool | required |
| Is the option required. | |
| bool | needs_argument |
| Does the option need an argument. | |
| bool | specified |
| Has the user specified the option. | |
| std::string | help |
| The help string of the option. | |
| std::string | name |
| The name string of the option: "-h --help", for example. | |
|
|
|
|
|
Return the string of the option.
|
|
|
Return the double value of the option.
|
|
|
Return the float value of the option.
|
|
|
Return the integer value of the option.
|
|
|
Return the string of the option.
|
|
|
The help string of the option.
|
|
|
The long name used also in configuration files.
|
|
|
The name string of the option: "-h --help", for example.
|
|
|
Does the option need an argument.
|
|
|
Is the option required.
|
|
|
The short name used for command line.
|
|
|
Has the user specified the option.
|
|
|
The value parsed from command line or file.
|
1.4.6