#include <option_parser.h>
Constructor
- Parameters
-
| flag | name of the flag without -- prefix |
| help | message describing the function of the flag |
| const std::string& flag |
( |
| ) |
const |
|
inline |
Get name of the flag
- Returns
- flag name
| virtual std::string get_value |
( |
| ) |
const |
|
pure virtual |
Get the current value of the option
- Returns
- value as a string
Implemented in option< T >.
| const std::string& help |
( |
| ) |
const |
|
inline |
Get help description of flag
- Returns
- description
| virtual void set_value |
( |
const std::string & |
str | ) |
|
|
pure virtual |
Parses value from given string
- Parameters
-
Implemented in option< T >.
The documentation for this class was generated from the following file: