fixed class constructor inheritance

This commit is contained in:
Chris Punches
2017-04-18 19:35:06 -04:00
parent 41c59ea985
commit f43c3066d2
7 changed files with 51 additions and 47 deletions

View File

@@ -5,17 +5,6 @@
#include "src/json/json-forwards.h"
#include "src/loaders.h"
void json_file_to_json_obj(std::string filename)
{
Conf jsonLoader = Conf(filename);
Json::Value root = jsonLoader.get_root();
const std::string planpath = root.get("plan_path", NULL).asString();
std::cout << planpath;
}
/*configuration load_config_file( std::string filename )
{
json j_conf = json_file_to_json_obj( filename );
@@ -25,10 +14,8 @@ void json_file_to_json_obj(std::string filename)
int main()
{
// configuration appconf = load_config_file( "./config.json" );
// std::cout << appconf.plan_path << std::endl;
// std::cout << appconf.units_path << std::endl;
Conf jsonLoader = Conf("config.json");
json_file_to_json_obj( "config.json" );
std::cout << jsonLoader.get_units_path();
return 0;
}