46 explicit operator std::string()
const override;
FrameWriterInterceptor(OutputFormat output_format, int fps, int video_length)
Construct a new Save File Interceptor object.
OutputFormat output_format
void onSimulationStart(Simulation &simulation) override
This function saves the initial state of the simulation.
void onSimulationEnd(size_t iteration, Simulation &simulation) override
This function saves the final state of the simulation.
void operator()(size_t iteration, Simulation &simulation) override
This function is called on every nth iteration. It writes the current state of the simulation to a fi...
std::unique_ptr< FileOutputHandler > file_output_handler
void logSummary(int depth) const override
Logs the summary of the thermostat.
Class to run a simulation.