5 #ifndef VOLK_VOLK_OPTION_HELPERS_H 6 #define VOLK_VOLK_OPTION_HELPERS_H 27 option_t(std::string longform, std::string shortform, std::string msg,
void (*
callback)(
int));
28 option_t(std::string longform, std::string shortform, std::string msg,
void (*
callback)(
float));
29 option_t(std::string longform, std::string shortform, std::string msg,
void (*
callback)(
bool));
30 option_t(std::string longform, std::string shortform, std::string msg,
void (*
callback)(std::string));
31 option_t(std::string longform, std::string shortform, std::string msg, std::string
printval);
46 bool present(std::string option_name);
50 void parse(
int argc,
char **argv);
54 std::string program_name;
55 std::vector<option_t> internal_list;
56 std::map<std::string, int> present_options;
60 #endif //VOLK_VOLK_OPTION_HELPERS_H Definition: volk_option_helpers.h:20
option_t(std::string longform, std::string shortform, std::string msg, void(*callback)())
Definition: volk_option_helpers.cc:17
void(* callback)()
Definition: volk_option_helpers.h:38
std::string msg
Definition: volk_option_helpers.h:35
Definition: volk_option_helpers.h:21
std::string longform
Definition: volk_option_helpers.h:33
Definition: volk_option_helpers.h:42
Definition: volk_option_helpers.h:16
std::string shortform
Definition: volk_option_helpers.h:34
VOLK_API void
Call into a specific implementation given by name.
VOLK_OPTYPE
Definition: volk_option_helpers.h:14
Definition: volk_option_helpers.h:24
std::string printval
Definition: volk_option_helpers.h:37
VOLK_OPTYPE option_type
Definition: volk_option_helpers.h:36
Definition: volk_option_helpers.h:17
Definition: volk_option_helpers.h:18
Definition: volk_option_helpers.h:19