Skip to content
Snippets Groups Projects
Commit ca8dca06 authored by Maurice Zimmnau's avatar Maurice Zimmnau
Browse files

design_evaluator adaptions

parent 647f1821
Branches
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
#include <filesystem>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include <cmath>
// Function to remove a substring from the end of a string
std::string substractStringFromEnd(const std::string& string, const std::string& string_to_substract) {
......@@ -246,11 +247,12 @@ int main () {
for (const auto& tree : std::ranges::subrange(aircraft_design_trees.begin() + 1, aircraft_design_trees.end())) {
boost::property_tree::ptree temp_tree{};
for (const auto& node : subpaths_tree) {
std::string node_path{"aircraft_exchange_file/" + node.second.data()};
// double upstream_value{std::nan("")};
double upstream_value{NAN};
double local_value{NAN};
std::string unit{"?"};
std::string node_path = node.second.get<std::string>("<xmlattr>.path");
if (containsSymbol(node_path, "@")) {
std::string pre{node_path.substr(0, node_path.find_first_of('@'))};
std::string temp_string{node_path.substr(node_path.find_first_of('@'))};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment