Molecular Dynamics Simulation  1.0
ChkptPointFileReader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <filesystem>
4 
5 #include "io/xml_schemas/checkpoint/checkpoint_schema.h"
11  public:
19  [[nodiscard]] std::tuple<std::vector<Particle>, int> readFile(const std::filesystem::path& filepath) const;
20 
29  [[nodiscard]] static size_t calculateHash(const std::filesystem::path& filepath);
30 
40  [[nodiscard]] static bool detectSourceFileChanges(const std::string& filepath);
41 };
Class to read particle and simulation data from a '.xml' file.
static bool detectSourceFileChanges(const std::string &filepath)
Checks if the given file contains a valid hash generated from the original input file.
std::tuple< std::vector< Particle >, int > readFile(const std::filesystem::path &filepath) const
Reads particle data from a '.xml' file and returns a vector of particles.
static size_t calculateHash(const std::filesystem::path &filepath)
Calculates the hash for the given input file.