Medial Code Documentation
|
A basic class wrapper to parse command args has default "h", "help", "debug" and "base_config" for reading all arguments from file and prinring help. More...
#include <MedUtils.h>
Public Member Functions | |
virtual int | parse_parameters (int argc, char *argv[]) |
the main function to parse the command arguments | |
Data Fields | |
bool | debug |
a debug flag for verbose printing. will be init from command args | |
po::variables_map | vm |
string | app_logo |
the application logo/name | |
Protected Member Functions | |
void | init (po::options_description &prg_options, const string &app_l="") |
an init function | |
ProgramArgs_base () | |
the ctor of base class | |
A basic class wrapper to parse command args has default "h", "help", "debug" and "base_config" for reading all arguments from file and prinring help.
You just need to implement the Ctor of inheritence class and call init function to use this class. you may also override post_process hook for setting some variable after all arguments were set by the program_options. to use in main call "parse_parameters" function
string medial::io::ProgramArgs_base::app_logo |
the application logo/name