fixed class constructor inheritance
This commit is contained in:
17
main.cpp
17
main.cpp
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user