10 #ifndef VOLK_VOLK_OPTION_HELPERS_H
11 #define VOLK_VOLK_OPTION_HELPERS_H
32 std::string t_shortform,
34 void (*t_callback)());
36 std::string t_shortform,
38 void (*t_callback)(
int));
40 std::string t_shortform,
42 void (*t_callback)(
float));
44 std::string t_shortform,
46 void (*t_callback)(
bool));
48 std::string t_shortform,
50 void (*t_callback)(std::string));
52 std::string t_shortform,
54 std::string t_printval);
68 bool present(std::string option_name);
72 void parse(
int argc,
char** argv);
77 std::string d_program_name;
78 std::vector<option_t> d_internal_list;
79 std::map<std::string, int> d_present_options;
83 #endif // VOLK_VOLK_OPTION_HELPERS_H
bool present(std::string option_name)
Definition: volk_option_helpers.cc:206
Definition: volk_option_helpers.h:24
void(* callback)()
Definition: volk_option_helpers.h:61
std::string msg
Definition: volk_option_helpers.h:58
Definition: volk_option_helpers.h:25
void add(option_t opt)
Definition: volk_option_helpers.cc:106
std::string longform
Definition: volk_option_helpers.h:56
Definition: volk_option_helpers.h:64
Definition: volk_option_helpers.h:20
void help()
Definition: volk_option_helpers.cc:215
std::string shortform
Definition: volk_option_helpers.h:57
VOLK_API void
Call into a specific implementation given by name.
Definition: volk.tmpl.h:103
VOLK_OPTYPE
Definition: volk_option_helpers.h:19
Definition: volk_option_helpers.h:28
std::string printval
Definition: volk_option_helpers.h:60
option_list(std::string program_name)
Definition: volk_option_helpers.cc:100
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:59
void parse(int argc, char **argv)
Definition: volk_option_helpers.cc:108
option_t(std::string t_longform, std::string t_shortform, std::string t_msg, void(*t_callback)())
Definition: volk_option_helpers.cc:23
Definition: volk_option_helpers.h:21
Definition: volk_option_helpers.h:22
Definition: volk_option_helpers.h:23