Tyro/src/settings/Config.cpp

24 lines
396 B
C++
Raw Normal View History

/**
* Object to control settings reading/writing
*/
#include "Config.h"
2019-06-18 11:22:49 -04:00
TyroConfig::TyroConfig() = default;
TyroConfig::~TyroConfig() = default;
2015-04-21 09:55:28 -04:00
void TyroConfig::LoadJson(const char json[])
{
2015-04-21 09:55:28 -04:00
string json_string(json);
if ( ! reader.parse(json_string, default_root))
{
cerr << reader.getFormattedErrorMessages() << endl;
}
}
JsonValue TyroConfig::GetRoot()
{
return default_root;
2019-06-04 14:57:38 -04:00
}