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;
Definition: volk_option_helpers.h:78
void add(option_t opt)
Definition: volk_option_helpers.cc:119
void parse(int argc, char **argv)
Definition: volk_option_helpers.cc:121
void help()
Definition: volk_option_helpers.cc:227
bool present(std::string option_name)
Definition: volk_option_helpers.cc:218
Definition: volk_option_helpers.h:42
std::string shortform
Definition: volk_option_helpers.h:70
std::string printval
Definition: volk_option_helpers.h:73
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:72
std::string longform
Definition: volk_option_helpers.h:69
std::string msg
Definition: volk_option_helpers.h:71
void(* callback)()
Definition: volk_option_helpers.h:74
VOLK_OPTYPE
Definition: volk_option_helpers.h:32
@ INT_CALLBACK
Definition: volk_option_helpers.h:34
@ VOID_CALLBACK
Definition: volk_option_helpers.h:33
@ BOOL_CALLBACK
Definition: volk_option_helpers.h:35
@ STRING_CALLBACK
Definition: volk_option_helpers.h:36
@ STRING
Definition: volk_option_helpers.h:38
@ FLOAT_CALLBACK
Definition: volk_option_helpers.h:37