|
libpsynth 0.2.1
|
Option that catches the argument and stores its value, converted to any desired type. More...
#include <arg_parser.hpp>


Public Member Functions | |
| option_generic (T *data) | |
| Constructor. | |
| bool | parse (const char *arg) |
| Parses an argument. | |
Option that catches the argument and stores its value, converted to any desired type.
Template argument T defines the desired type and ConvFunc must be the proper converter function, which defaults to atoany_func.
| psynth::base::option_generic< T, ConvFunc >::option_generic | ( | T * | data | ) | [inline] |
Constructor.
| data | Pointer to where you want to store the argument value. |
| bool psynth::base::option_generic< T, ConvFunc >::parse | ( | const char * | arg | ) | [inline, virtual] |
Parses an argument.
| arg | The argument. |
true. Reimplemented from psynth::base::option.
1.7.4