Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
OnetepDatReader.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#include "BaseReader.hpp"
11#include "core/Cell.hpp"
12#include "core/Trajectory.hpp"
13
14#include <functional>
15#include <string>
16#include <vector>
17
18namespace correlation::readers {
19
24public:
25 std::string getName() const override { return "ONETEP DAT"; }
26 std::vector<std::string> getExtensions() const override { return {"dat"}; }
27 bool isTrajectory() const override { return false; }
28
30 const std::string &filename,
31 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
32
34 const std::string &filename,
35 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
36
42 static correlation::core::Cell read(const std::string &file_name);
43};
44
45} // namespace correlation::readers
Abstract base class for all file format readers.
Simulation cell structure with periodic boundary conditions.
Trajectory data structure for time-series atomistic simulations.
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
This class stores a series of snapshots of a system.
Definition Trajectory.hpp:32
Reads a ONETEP .dat structure format.
Definition OnetepDatReader.hpp:23
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition OnetepDatReader.hpp:26
std::string getName() const override
Returns the display name of the format.
Definition OnetepDatReader.hpp:25
correlation::core::Cell readStructure(const std::string &filename, std::function< void(float, const std::string &)> progress_callback=nullptr) override
Reads an atomic structure from a file.
Definition OnetepDatReader.cpp:203
static correlation::core::Cell read(const std::string &file_name)
Low-level parser for the specific file format.
Definition OnetepDatReader.cpp:215
correlation::core::Trajectory readTrajectory(const std::string &filename, std::function< void(float, const std::string &)> progress_callback=nullptr) override
Reads a trajectory from a file.
Definition OnetepDatReader.cpp:209
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition OnetepDatReader.hpp:27
Definition TrajectoryLoader.hpp:24