23 #ifndef VOLK_VOLK_OPTION_HELPERS_H 24 #define VOLK_VOLK_OPTION_HELPERS_H 45 std::string t_shortform,
47 void (*t_callback)());
49 std::string t_shortform,
51 void (*t_callback)(
int));
53 std::string t_shortform,
55 void (*t_callback)(
float));
57 std::string t_shortform,
59 void (*t_callback)(
bool));
61 std::string t_shortform,
63 void (*t_callback)(std::string));
65 std::string t_shortform,
67 std::string t_printval);
81 bool present(std::string option_name);
85 void parse(
int argc,
char** argv);
90 std::string d_program_name;
91 std::vector<option_t> d_internal_list;
92 std::map<std::string, int> d_present_options;
96 #endif // VOLK_VOLK_OPTION_HELPERS_H Definition: volk_option_helpers.h:37
void(* callback)()
Definition: volk_option_helpers.h:74
std::string msg
Definition: volk_option_helpers.h:71
Definition: volk_option_helpers.h:38
std::string longform
Definition: volk_option_helpers.h:69
Definition: volk_option_helpers.h:77
Definition: volk_option_helpers.h:33
std::string shortform
Definition: volk_option_helpers.h:70
VOLK_API void
Call into a specific implementation given by name.
VOLK_OPTYPE
Definition: volk_option_helpers.h:32
Definition: volk_option_helpers.h:41
std::string printval
Definition: volk_option_helpers.h:73
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:72
option_t(std::string t_longform, std::string t_shortform, std::string t_msg, void(*t_callback)())
Definition: volk_option_helpers.cc:36
Definition: volk_option_helpers.h:34
Definition: volk_option_helpers.h:35
Definition: volk_option_helpers.h:36