Molecular Dynamics Simulation  1.0
Public Member Functions | List of all members
FileWriter Class Referenceabstract

Abstract base class for all file writers. More...

#include <FileWriter.h>

Inheritance diagram for FileWriter:
Inheritance graph
Collaboration diagram for FileWriter:
Collaboration graph

Public Member Functions

virtual ~FileWriter ()=default
 virtual destructor for correct cleanup of derived classes More...
 
virtual const std::filesystem::path writeFile (const SimulationParams &params, size_t iteration, const std::vector< Particle > &particles) const =0
 Writes the file to the given path, uses the given ParticleContainer and the current iteration. More...
 

Detailed Description

Abstract base class for all file writers.

Definition at line 12 of file FileWriter.h.

Constructor & Destructor Documentation

◆ ~FileWriter()

virtual FileWriter::~FileWriter ( )
virtualdefault

virtual destructor for correct cleanup of derived classes

Member Function Documentation

◆ writeFile()

virtual const std::filesystem::path FileWriter::writeFile ( const SimulationParams params,
size_t  iteration,
const std::vector< Particle > &  particles 
) const
pure virtual

Writes the file to the given path, uses the given ParticleContainer and the current iteration.

Parameters
paramsSimulationParams object which provides the output directory path
iterationThe current iteration number
particlesA vector of particles to write to the file
Returns
The path to the written file

Implemented in XYZWriter, VTUWriter, and CheckPointWriter.


The documentation for this class was generated from the following file: