|
libpsynth 0.2.1
|
The interface of an option of the argument parser. More...
#include <arg_parser.hpp>

Public Member Functions | |
| virtual | ~option () |
| Virtual destructor. | |
| virtual bool | parse (const char *arg) |
| Define this function to make this option receive an argument. | |
| virtual bool | parse () |
| Define this function to make the option be a toggle. | |
The interface of an option of the argument parser.
| virtual psynth::base::option::~option | ( | ) | [inline, virtual] |
Virtual destructor.
| virtual bool psynth::base::option::parse | ( | const char * | arg | ) | [inline, virtual] |
Define this function to make this option receive an argument.
| arg | The argument being parsed. |
true if you where able to parse the argument or false if you could not or the option does not receive arguments. Reimplemented in psynth::base::option_generic< T, ConvFunc >, psynth::base::option_stream< T >, psynth::base::option_conf< T >, and psynth::base::option_conf< std::string >.
| virtual bool psynth::base::option::parse | ( | ) | [inline, virtual] |
Define this function to make the option be a toggle.
true if you where able to toggle or false if the option must receive an argument. Reimplemented in psynth::base::option_flag, psynth::base::option_not_flag, and psynth::base::option_conf_value< T >.
1.7.4