fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
wsjcpp_parse_conf.h
Go to the documentation of this file.
1 #ifndef WSJCPP_PARSE_CONF_H
2 #define WSJCPP_PARSE_CONF_H
3 
4 #include <string>
5 #include <map>
6 
8  public:
9  WsjcppParseConf(const std::string &sFilepathConf);
10  bool load();
11 
12  bool has(const std::string &sParamName);
13  std::string getStringValue(const std::string &sParamName, const std::string &defaultValue);
14  int getIntValue(const std::string &sParamName, int defaultValue);
15  bool getBoolValue(const std::string &sParamName, bool defaultValue);
16  std::map<std::string,std::string> getValues();
17 
18  private:
19  std::string TAG;
20  std::string m_sFilepathConf;
21  std::map<std::string,std::string> m_mapConfigValues;
22 };
23 
24 #endif // WSJCPP_PARSE_CONF_H
std::map< std::string, std::string > getValues()
Definition: wsjcpp_parse_conf.cpp:114
std::string getStringValue(const std::string &sParamName, const std::string &defaultValue)
Definition: wsjcpp_parse_conf.cpp:73
bool has(const std::string &sParamName)
Definition: wsjcpp_parse_conf.cpp:67
int getIntValue(const std::string &sParamName, int defaultValue)
Definition: wsjcpp_parse_conf.cpp:85
bool load()
Definition: wsjcpp_parse_conf.cpp:19
WsjcppParseConf(const std::string &sFilepathConf)
Definition: wsjcpp_parse_conf.cpp:12
bool getBoolValue(const std::string &sParamName, bool defaultValue)
Definition: wsjcpp_parse_conf.cpp:99
std::string TAG
Definition: wsjcpp_parse_conf.h:19
Definition: wsjcpp_parse_conf.h:7
std::map< std::string, std::string > m_mapConfigValues
Definition: wsjcpp_parse_conf.h:21
std::string m_sFilepathConf
Definition: wsjcpp_parse_conf.h:20