SHORE API
|
Public Member Functions | |
opt_base1 (const char sh, const std::string &lo, T *const ptr) | |
virtual void * | ptr () const |
void pointer to the location the optarg gets stored at. | |
virtual std::string | arg_format () const |
Display the format hint for the argument. | |
![]() | |
opt_base (const char sh, const std::string &lo) | |
bool | is_option () const |
virtual void | store_arg (const char *const sval, const bool clear_arg)=0 |
Parse the option argument from a string. | |
virtual std::string | argdefault_string () const =0 |
Display the current setting of the argument. | |
Public Attributes | |
T * | valueptr |
![]() | |
char | shortopt |
Single character option. | |
std::string | longopt |
Long option. | |
std::string | id |
The option's id. | |
std::string | label |
The option's label. | |
bool | is_switch |
bool | multiple |
OptionFlags | arg_default |
std::string | info |
Option description. | |
std::string | aux_info |
Additional option description. | |
Helper for av_parser.
Option base class for types where opt_base2 won't compile.