Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Utilities
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UNICADO
Utilities
Commits
ca8dca06
Commit
ca8dca06
authored
2 months ago
by
Maurice Zimmnau
Browse files
Options
Downloads
Patches
Plain Diff
design_evaluator adaptions
parent
647f1821
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
design_evaluator/src/main.cpp
+3
-1
3 additions, 1 deletion
design_evaluator/src/main.cpp
with
3 additions
and
1 deletion
design_evaluator/src/main.cpp
+
3
−
1
View file @
ca8dca06
...
...
@@ -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
(
'@'
))};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment