fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Public Member Functions | Private Attributes | List of all members
WsjcppParseConf Class Reference

#include <wsjcpp_parse_conf.h>

Public Member Functions

 WsjcppParseConf (const std::string &sFilepathConf)
 
bool load ()
 
bool has (const std::string &sParamName)
 
std::string getStringValue (const std::string &sParamName, const std::string &defaultValue)
 
int getIntValue (const std::string &sParamName, int defaultValue)
 
bool getBoolValue (const std::string &sParamName, bool defaultValue)
 
std::map< std::string, std::string > getValues ()
 

Private Attributes

std::string TAG
 
std::string m_sFilepathConf
 
std::map< std::string, std::string > m_mapConfigValues
 

Constructor & Destructor Documentation

◆ WsjcppParseConf()

WsjcppParseConf::WsjcppParseConf ( const std::string &  sFilepathConf)

Member Function Documentation

◆ getBoolValue()

bool WsjcppParseConf::getBoolValue ( const std::string &  sParamName,
bool  defaultValue 
)

◆ getIntValue()

int WsjcppParseConf::getIntValue ( const std::string &  sParamName,
int  defaultValue 
)

◆ getStringValue()

std::string WsjcppParseConf::getStringValue ( const std::string &  sParamName,
const std::string &  defaultValue 
)

◆ getValues()

std::map< std::string, std::string > WsjcppParseConf::getValues ( )

◆ has()

bool WsjcppParseConf::has ( const std::string &  sParamName)

◆ load()

bool WsjcppParseConf::load ( )

Member Data Documentation

◆ m_mapConfigValues

std::map<std::string,std::string> WsjcppParseConf::m_mapConfigValues
private

◆ m_sFilepathConf

std::string WsjcppParseConf::m_sFilepathConf
private

◆ TAG

std::string WsjcppParseConf::TAG
private

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