Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Modelichart Backend
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
ModeliChart
Modelichart Backend
Commits
5cbb0e01
Commit
5cbb0e01
authored
7 years ago
by
Tim Übelhör
Browse files
Options
Downloads
Patches
Plain Diff
Fixed parsing xml attributes
parent
af0332e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Files/FmuFile.cpp
+2
-2
2 additions, 2 deletions
Files/FmuFile.cpp
MC_Backend_Win/Sample.modeli
+0
-0
0 additions, 0 deletions
MC_Backend_Win/Sample.modeli
with
2 additions
and
2 deletions
Files/FmuFile.cpp
+
2
−
2
View file @
5cbb0e01
...
...
@@ -48,7 +48,7 @@ namespace Files
// Create a property tree from modelDescription.xml
pt
::
ptree
desc
;
pt
::
read_xml
(
xmlPath
.
generic_string
(),
desc
);
std
::
string
modelName
=
desc
.
get
<
std
::
string
>
(
"fmiModelDescription.CoSimulation.xmlattr.modelIdentifier"
);
std
::
string
modelName
=
desc
.
get
<
std
::
string
>
(
"fmiModelDescription.CoSimulation.
<
xmlattr
>
.modelIdentifier"
);
fs
::
path
binaryPath
=
fs
::
path
(
_unzippedPath
)
/
"binaries"
;
#ifdef __linux__
...
...
@@ -73,7 +73,7 @@ namespace Files
// Create a property tree from modelDescription.xml
pt
::
ptree
desc
;
pt
::
read_xml
(
xmlPath
.
generic_string
(),
desc
);
return
desc
.
get
<
std
::
string
>
(
"fmiModelDescription.xmlattr.guid"
);
return
desc
.
get
<
std
::
string
>
(
"fmiModelDescription.
<
xmlattr
>
.guid"
);
}
std
::
string
FmuFile
::
GetResourceUri
()
{
...
...
This diff is collapsed.
Click to expand it.
MC_Backend_Win/Sample.modeli
+
0
−
0
View file @
5cbb0e01
No preview for this file type
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