Headless client work

This commit is contained in:
KimLS
2016-11-15 21:30:43 -08:00
parent 84367e1f77
commit c86d4be1ae
15 changed files with 7798 additions and 64 deletions
+26
View File
@@ -0,0 +1,26 @@
#pragma once
#include "json/json.h"
namespace EQ
{
class JsonConfigFile
{
public:
JsonConfigFile(const Json::Value &value);
~JsonConfigFile();
static JsonConfigFile Load(const std::string &filename);
std::string GetVariableString(const std::string &title, const std::string &parameter, const std::string &default_value);
int GetVariableInt(const std::string &title, const std::string &parameter, const int default_value);
bool GetVariableBool(const std::string &title, const std::string &parameter, const bool default_value);
double GetVariableDouble(const std::string &title, const std::string &parameter, const double default_value);
Json::Value& RawHandle() { return m_root; }
private:
JsonConfigFile();
Json::Value m_root;
};
}