Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPSreport
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JuPedSim
JPSreport
Commits
fd242e8d
Commit
fd242e8d
authored
6 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Patches
Plain Diff
create default Output directory
parent
8bc74683
Branches
Branches containing commit
No related tags found
1 merge request
!10
Resolve "Use Boost Directory Functionality"
Pipeline
#14368
passed
6 years ago
Stage: configure
Stage: compile
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
general/ArgumentParser.cpp
+20
-21
20 additions, 21 deletions
general/ArgumentParser.cpp
with
20 additions
and
21 deletions
general/ArgumentParser.cpp
+
20
−
21
View file @
fd242e8d
...
...
@@ -428,16 +428,19 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
}
// output directory
_outputDir
=
GetProjectRootDir
()
+
"Output/"
;
fs
::
path
PathOutputDir
(
_outputDir
);
if
(
xMainNode
->
FirstChild
(
"output"
))
{
_outputDir
=
xMainNode
->
FirstChildElement
(
"output"
)
->
Attribute
(
"location"
);
fs
::
path
PathOutputDir
(
_outputDir
);
// todo: this is quick
PathOutputDir
=
_outputDir
;
// todo: this is quick
// and dirty. waiting
// for MR 10 to
// generalize the use of boost:fs
if
(
_outputDir
.
empty
())
{
_outputDir
=
GetProjectRootDir
()
+
"
/
Output/"
;
_outputDir
=
GetProjectRootDir
()
+
"Output/"
;
}
if
(
!
PathOutputDir
.
is_absolute
())
{
...
...
@@ -445,6 +448,9 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
PathOutputDir
=
_projectRootDir
/
PathOutputDir
;
_outputDir
=
PathOutputDir
.
string
();
}
}
else
Log
->
Write
(
"INFO:
\t
Default output directory"
);
if
(
!
exists
(
PathOutputDir
))
{
// does not exist yet. mkdir
...
...
@@ -457,14 +463,7 @@ bool ArgumentParser::ParseIniFile(const string& inifile)
else
Log
->
Write
(
"INFO:
\t
created directory <"
+
_outputDir
+
">"
);
}
else
{
Log
->
Write
(
"INFO:
\t
Output directory for results is:
\t
<"
+
_outputDir
+
">"
);
}
}
else
{
// we should create output here not in the methods
}
//measurement area
if
(
xMainNode
->
FirstChild
(
"measurement_areas"
))
...
...
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