Molecular Dynamics Simulation
1.0
|
Abstract base class for all custom file readers. More...
#include <FileReader.h>
Classes | |
class | FileFormatException |
Exception to be thrown when the file format is invalid. More... | |
Public Member Functions | |
virtual | ~FileReader ()=default |
virtual destructor for correct cleanup of derived classes More... | |
virtual std::tuple< std::vector< Particle >, std::optional< SimulationParams > > | readFile (const std::filesystem::path &filepath) const =0 |
Reads the file with the given path and returns a vector of particles. More... | |
Abstract base class for all custom file readers.
Definition at line 14 of file FileReader.h.
|
virtualdefault |
virtual destructor for correct cleanup of derived classes
|
pure virtual |
Reads the file with the given path and returns a vector of particles.
filepath | Path to the file to be read |
Implemented in XMLFileReader.