Molecular Dynamics Simulation  1.0
FileInputHandler.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <optional>
4 #include <set>
5 
10 
18  public:
33  static std::tuple<std::vector<Particle>, std::optional<SimulationParams>> readFile(const std::filesystem::path& input_file_path,
34  bool fresh = false, bool allow_recursion = true);
35 };
Wrapper class to abstract the reading of input files.
static std::tuple< std::vector< Particle >, std::optional< SimulationParams > > readFile(const std::filesystem::path &input_file_path, bool fresh=false, bool allow_recursion=true)
Reads the input file and stores the particles in the given ParticleContainer. Other simulation parame...