Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Praetorius, Simon
dune-amdis
Commits
7bacb929
Commit
7bacb929
authored
Mar 13, 2019
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup of constructor and getters/setters in FileWriterInterface
parent
68c1eb6d
Pipeline
#1819
passed with stage
in 29 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
src/amdis/FileWriterInterface.hpp
src/amdis/FileWriterInterface.hpp
+22
-9
No files found.
src/amdis/FileWriterInterface.hpp
View file @
7bacb929
...
...
@@ -16,11 +16,8 @@ namespace AMDiS
public:
explicit
FileWriterInterface
(
std
::
string
const
&
base
)
{
filename_
=
"solution"
;
Parameters
::
get
(
base
+
"->filename"
,
filename_
);
dir_
=
"output"
;
Parameters
::
get
(
base
+
"->output directory"
,
dir_
);
name_
=
"solution"
;
Parameters
::
get
(
base
+
"->name"
,
name_
);
}
...
...
@@ -30,15 +27,16 @@ namespace AMDiS
// pure virtual method to be implemented by derived classes
virtual
void
writeFiles
(
AdaptInfo
&
adaptInfo
,
bool
force
)
=
0
;
public:
// getter and setter
std
::
string
filename
()
const
std
::
string
const
&
filename
()
const
{
return
filename_
;
}
void
setFilename
(
std
::
string
const
&
filename
)
std
::
string
const
&
dir
()
const
{
filename_
=
filename
;
return
dir_
;
}
std
::
string
const
&
name
()
const
...
...
@@ -46,10 +44,25 @@ namespace AMDiS
return
name_
;
}
void
setFilename
(
std
::
string
const
&
filename
)
{
filename_
=
filename
;
}
void
setDir
(
std
::
string
const
&
dir
)
{
dir_
=
dir
;
}
void
setName
(
std
::
string
const
&
name
)
{
name_
=
name
;
}
protected:
std
::
string
filename_
;
std
::
string
dir_
;
std
::
string
name_
;
std
::
string
filename_
=
"solution"
;
std
::
string
dir_
=
"output"
;
std
::
string
name_
=
"solution"
;
};
}
// end namespace AMDiS
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment