Liebe Gitlab-Nutzer, lieber Gitlab-Nutzer, es ist nun möglich sich mittels des ZIH-Logins/LDAP an unserem Dienst anzumelden. Die Konto der externen Nutzer:innen sind über den Reiter "Standard" erreichbar. Die Administratoren

Dear Gitlab user, it is now possible to log in to our service using the ZIH login/LDAP. The accounts of external users can be accessed via the "Standard" tab. The administrators

Commit dbb8741e authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'issue/filewriterinterface_cleanup' into 'develop'

cleanup of constructor and getters/setters in FileWriterInterface

See merge request !100
parents 6dce5bfe 7bacb929
Pipeline #1824 canceled with stage
......@@ -16,11 +16,8 @@ namespace AMDiS
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;
std::string filename_;
std::string dir_;
std::string name_;
std::string filename_ = "solution";
std::string dir_ = "output";
std::string name_ = "solution";
} // end namespace AMDiS
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment