1 #include "config/network_config.hpp"
2 #include "util/util.hpp"
3 #include "util/debug.hpp"
6 SPDLOG_INFO(
"NetworkConfig");
7 SPDLOG_INFO(
"File name: {} ",
file);
8 SPDLOG_INFO(
"ID name: {} ",
id);
9 SPDLOG_INFO(
"Source name: {} ",
source);
10 SPDLOG_INFO(
"Target name: {} ",
target);
14 const boost::property_tree::ptree &xml_data){
15 std::string file = xml_data.get<std::string>(
"config.input.network.file");
16 std::string
id = xml_data.get(
"config.input.network.id",
"id");
17 std::string source = xml_data.get(
"config.input.network.source",
"source");
18 std::string target = xml_data.get(
"config.input.network.target",
"target");
23 const cxxopts::ParseResult &arg_data){
24 std::string file = arg_data[
"network"].as<std::string>();
25 std::string
id = arg_data[
"network_id"].as<std::string>();
26 std::string source = arg_data[
"source"].as<std::string>();
27 std::string target = arg_data[
"target"].as<std::string>();
33 SPDLOG_CRITICAL(
"Network file not found {}",file);