JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
Static Public Member Functions | Static Protected Member Functions
ConfigParser Class Reference

#include <ConfigParser.h>

Static Public Member Functions

static const po::variables_map parseConfigs (int argc, char *argv[])
 
static void setConfig (const po::variables_map &vm)
 
static void produceHelpMessage ()
 
static void dumpConfig ()
 

Static Protected Member Functions

static const po::options_description getCMDOptions ()
 
static const po::options_description getConfigOptions ()
 
static const po::options_description getHiddenConfigOptions ()
 
static const std::string getConfigFile ()
 

Detailed Description

A parser for parsing the config files and command line parameters

Member Function Documentation

◆ dumpConfig()

void ConfigParser::dumpConfig ( )
static

Dumps a visual representation of all configs

Here is the caller graph for this function:

◆ getCMDOptions()

const po::options_description ConfigParser::getCMDOptions ( )
staticprotected
Here is the caller graph for this function:

◆ getConfigFile()

const std::string ConfigParser::getConfigFile ( )
staticprotected
Here is the caller graph for this function:

◆ getConfigOptions()

const po::options_description ConfigParser::getConfigOptions ( )
staticprotected
Here is the caller graph for this function:

◆ getHiddenConfigOptions()

const po::options_description ConfigParser::getHiddenConfigOptions ( )
staticprotected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseConfigs()

const po::variables_map ConfigParser::parseConfigs ( int  argc,
char *  argv[] 
)
static

Parses the command line parameters and the config file (if available)

Parameters
argcargc of main function
argvargv of main function
Returns
The parsed variables
Here is the call graph for this function:

◆ 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

Here is the call graph for this function:

◆ setConfig()

void ConfigParser::setConfig ( const po::variables_map &  vm)
static

Sets the configurations of the program, by providing the previously parsed variables

Parameters
vmThe variables map to get configs from

The documentation for this class was generated from the following files: