odtone::mih::config
// In header: </home/carlos/Projectos/odtone/inc/odtone/mih/config.hpp> class config { public: // construct/copy/destruct config(po::options_description &); ~config(); // public member functions bool help(); bool parse(int, char *, const char *); template<typename T> T get(const char *) const; uint count(const char *); };
Configuration and command line options parser
This class provides parsing for command line options and configuration files for a set of predefined options description.
config
public member functionsbool help();
Check if the help option was specified.
Returns: |
True if the help option is present or false otherwise. |
bool parse(int argc, char * argv, const char * conf_file_option);
Parse the command line arguments.
Parameters: |
|
template<typename T> T get(const char * var) const;
Get option variable value.
Parameters: |
|
uint count(const char * var);
Count the number of option variables.
Parameters: |
|