45     std::optional<const std::filesystem::path> 
writeFile(
size_t iteration,
 
   46                                                          const std::unique_ptr<ParticleContainer>& particle_container) 
const;
 
   56     std::optional<const std::filesystem::path> 
writeFile(
size_t iteration, 
const std::vector<Particle>& particles) 
const;
 
Wrapper class to abstract the writing of output files.
 
std::optional< const std::filesystem::path > writeFile(size_t iteration, const std::unique_ptr< ParticleContainer > &particle_container) const
Writes the given ParticleContainers particle data to a file.
 
std::unique_ptr< FileWriter > file_writer
Pointer to the FileWriter object to use.
 
const SimulationParams & params
SimulationParams object which provides the output directory path.
 
FileOutputHandler(const OutputFormat output_format, const SimulationParams ¶ms)
Construct a new FileOutputHandler object.
 
Contains all parameters needed to run a simulation.