SPH
|
Writer logging useful statistics (current run time, relative progress, time step, ...). More...
#include <LogWriter.h>
Public Member Functions | |
StandardLogWriter (const SharedPtr< ILogger > &logger, const RunSettings &settings) | |
virtual void | write (const Storage &storage, const Statistics &stats) override |
Writes to the log using provided storage and statistics. More... | |
![]() | |
ILogWriter (const SharedPtr< ILogger > &logger, const Float period=0._f) | |
Constructs the log file. More... | |
virtual AutoPtr< ITrigger > | action (Storage &storage, Statistics &stats) override final |
Writes to the log using provided storage and statistics. More... | |
![]() | |
PeriodicTrigger (const Float period, const Float startTime) | |
period Period in simulation time of triggered action. More... | |
virtual TriggerEnum | type () const override |
Returns the type of the trigger. More... | |
virtual bool | condition (const Storage &UNUSED(storage), const Statistics &stats) override |
![]() | |
virtual bool | condition (const Storage &storage, const Statistics &stats)=0 |
Returns true if the trigger should be executed. More... | |
![]() | |
virtual | ~Polymorphic () |
Additional Inherited Members | |
![]() | |
SharedPtr< ILogger > | logger |
Writer logging useful statistics (current run time, relative progress, time step, ...).
This is the default writer used in the simulation.
Definition at line 40 of file LogWriter.h.
StandardLogWriter::StandardLogWriter | ( | const SharedPtr< ILogger > & | logger, |
const RunSettings & | settings | ||
) |
Definition at line 37 of file LogWriter.cpp.
|
overridevirtual |
Writes to the log using provided storage and statistics.
Used for const-correctness (loggers should not modify storage nor stats) and returning another (non-nullptr) trigger (loggers do not create more triggers).
Implements ILogWriter.
Reimplemented in VerboseLogWriter.
Definition at line 42 of file LogWriter.cpp.