Molecular Dynamics Simulation  1.0
FileWriter.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <memory>
4 #include <optional>
5 
6 #include "particles/Particle.h"
8 
12 class FileWriter {
13  public:
17  virtual ~FileWriter() = default;
18 
28  [[nodiscard]] virtual const std::filesystem::path writeFile(const SimulationParams& params, size_t iteration,
29  const std::vector<Particle>& particles) const = 0;
30 };
Abstract base class for all file writers.
Definition: FileWriter.h:12
virtual ~FileWriter()=default
virtual destructor for correct cleanup of derived classes
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.
Contains all parameters needed to run a simulation.