48 std::string
const& filename()
const
53 std::string
const& dir()
const
58 std::string
const& name()
const
81 mutable double lastWriteTime_ = std::numeric_limits<double>::lowest();
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:26
Base class for filewriters.
Definition: FileWriterBase.hpp:39
double timeModulo_
Write after every time interval.
Definition: FileWriterBase.hpp:77
std::string filename_
Base part of output filename.
Definition: FileWriterBase.hpp:65
std::string name_
Name of the data.
Definition: FileWriterBase.hpp:71
int tsModulo_
Write every i'th timestep.
Definition: FileWriterBase.hpp:74
FileWriterBase(std::string const &base)
Constructor. Reads common parameters.
Definition: FileWriterBase.cpp:12
std::string dir_
Output directory.
Definition: FileWriterBase.hpp:68
bool doWrite(AdaptInfo &adaptInfo) const
Return whether to write the current timestep or not.
Definition: FileWriterBase.cpp:24
Interface class for filewriters.
Definition: FileWriterBase.hpp:13
virtual void write(AdaptInfo &adaptInfo, bool force)=0
Pure virtual method to be implemented by derived classes.
virtual ~FileWriterInterface()=default
Virtual destructor.