2017-04-22 12:07:11 +00:00
|
|
|
#include "Conf.h"
|
|
|
|
|
2017-06-09 03:49:13 +00:00
|
|
|
Conf::Conf( std::string filename ): JSON_Loader( filename )
|
2017-04-22 12:07:11 +00:00
|
|
|
{
|
2017-06-09 03:49:13 +00:00
|
|
|
this->plan_path = this->as_serialized()["plan_path"].asString();
|
|
|
|
this->units_path = this->as_serialized()["units_path"].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;
|
|
|
|
}
|