Molecular Dynamics Simulation  1.0
XMLFileReader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "io/input/FileReader.h"
4 #include "io/xml_schemas/simulation_input/simulation_input_schema.h"
6 
10 class XMLFileReader : public FileReader {
11  private:
12  bool fresh;
14 
15  public:
17 
24  [[nodiscard]] std::tuple<std::vector<Particle>, std::optional<SimulationParams>> readFile(
25  const std::filesystem::path& filepath) const override;
26 };
Abstract base class for all custom file readers.
Definition: FileReader.h:14
Class to read particle and simulation data from a '.xml' file.
Definition: XMLFileReader.h:10
bool allow_recursion
Definition: XMLFileReader.h:13
std::tuple< std::vector< Particle >, std::optional< SimulationParams > > readFile(const std::filesystem::path &filepath) const override
Reads particle data from a '.xml' file and returns a vector of particles Other simulation parameters ...
XMLFileReader(bool fresh, bool allow_recursion=true)
Definition: XMLFileReader.h:16