rex/src/loaders/Conf.cpp

20 lines
405 B
C++
Raw Normal View History

2017-04-22 12:07:11 +00:00
#include "Conf.h"
Conf::Conf( std::string filename ): JSON_Loader()
2017-04-22 12:07:11 +00:00
{
this->load_json_file( filename, true );
this->plan_path = this->get_key("plan_path", true, false).asString();
this->units_path = this->get_key("units_path", true, false).asString();
2017-04-22 12:07:11 +00:00
};
std::string Conf::get_plan_path()
{
return this->plan_path;
}
std::string Conf::get_units_path()
{
return this->units_path;
}