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;
Definition: volk_option_helpers.h:65
void add(option_t opt)
Definition: volk_option_helpers.cc:106
void parse(int argc, char **argv)
Definition: volk_option_helpers.cc:108
void help()
Definition: volk_option_helpers.cc:215
bool present(std::string option_name)
Definition: volk_option_helpers.cc:206
Definition: volk_option_helpers.h:29
std::string shortform
Definition: volk_option_helpers.h:57
std::string printval
Definition: volk_option_helpers.h:60
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:59
std::string longform
Definition: volk_option_helpers.h:56
std::string msg
Definition: volk_option_helpers.h:58
void(* callback)()
Definition: volk_option_helpers.h:61
VOLK_OPTYPE
Definition: volk_option_helpers.h:19
@ INT_CALLBACK
Definition: volk_option_helpers.h:21
@ VOID_CALLBACK
Definition: volk_option_helpers.h:20
@ BOOL_CALLBACK
Definition: volk_option_helpers.h:22
@ STRING_CALLBACK
Definition: volk_option_helpers.h:23
@ STRING
Definition: volk_option_helpers.h:25
@ FLOAT_CALLBACK
Definition: volk_option_helpers.h:24