JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
ConfigParser.h
Go to the documentation of this file.
1 //
2 // Created by Nico Schäfer on 06/02/18.
3 //
4 
5 #ifndef JODA_CONFIGPARSER_H
6 #define JODA_CONFIGPARSER_H
7 
8 #include <boost/program_options.hpp>
9 
10 namespace po = boost::program_options;
11 
15 class ConfigParser {
16  public:
23  static const po::variables_map parseConfigs(int argc, char* argv[]);
24 
30  static void setConfig(const po::variables_map& vm);
31 
36  static void produceHelpMessage();
37 
41  static void dumpConfig();
42 
43  protected:
44  static const po::options_description getCMDOptions();
45  static const po::options_description getConfigOptions();
46  static const po::options_description getHiddenConfigOptions();
47  static const std::string getConfigFile();
48 };
49 
50 #endif // JODA_CONFIGPARSER_H
Definition: ConfigParser.h:15
static void produceHelpMessage()
Definition: ConfigParser.cpp:290
static const po::options_description getCMDOptions()
Definition: ConfigParser.cpp:15
static void dumpConfig()
Definition: ConfigParser.cpp:298
static const po::variables_map parseConfigs(int argc, char *argv[])
Definition: ConfigParser.cpp:176
static const po::options_description getHiddenConfigOptions()
Definition: ConfigParser.cpp:65
static const po::options_description getConfigOptions()
Definition: ConfigParser.cpp:29
static void setConfig(const po::variables_map &vm)
Definition: ConfigParser.cpp:205
static const std::string getConfigFile()
Definition: ConfigParser.cpp:154