#include <ConfigParser.h>
A parser for parsing the config files and command line parameters
◆ dumpConfig()
void ConfigParser::dumpConfig |
( |
| ) |
|
|
static |
Dumps a visual representation of all configs
◆ getCMDOptions()
const po::options_description ConfigParser::getCMDOptions |
( |
| ) |
|
|
staticprotected |
◆ getConfigFile()
const std::string ConfigParser::getConfigFile |
( |
| ) |
|
|
staticprotected |
◆ getConfigOptions()
const po::options_description ConfigParser::getConfigOptions |
( |
| ) |
|
|
staticprotected |
◆ getHiddenConfigOptions()
const po::options_description ConfigParser::getHiddenConfigOptions |
( |
| ) |
|
|
staticprotected |
◆ parseConfigs()
const po::variables_map ConfigParser::parseConfigs |
( |
int |
argc, |
|
|
char * |
argv[] |
|
) |
| |
|
static |
Parses the command line parameters and the config file (if available)
- Parameters
-
argc | argc of main function |
argv | argv of main function |
- Returns
- The parsed variables
◆ produceHelpMessage()
void ConfigParser::produceHelpMessage |
( |
| ) |
|
|
static |
Prints the help message that appears when providing the "-h", "--help" command line flag or when using a wrong option
◆ setConfig()
void ConfigParser::setConfig |
( |
const po::variables_map & |
vm | ) |
|
|
static |
Sets the configurations of the program, by providing the previously parsed variables
- Parameters
-
vm | The variables map to get configs from |
The documentation for this class was generated from the following files:
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/config/include/joda/config/ConfigParser.h
- /home/nico/joda_tmp/tmp-joda-dirs/JODA-gh/libs/joda/core/modules/config/src/ConfigParser.cpp