Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
XdatcarReader.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
27class XdatcarReader : public BaseReader {
28public:
29 std::string getName() const override { return "VASP XDATCAR"; }
30 std::vector<std::string> getExtensions() const override { return {"xdatcar"}; }
31 bool isTrajectory() const override { return true; }
32
34 const std::string &filename,
35 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
36
38 const std::string &filename,
39 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
40};
41
42} // 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 VASP XDATCAR trajectory files with memory-mapped lazy loading.
Definition XdatcarReader.hpp:27
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition XdatcarReader.hpp:30
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 XdatcarReader.cpp:287
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition XdatcarReader.hpp:31
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 XdatcarReader.cpp:300
std::string getName() const override
Returns the display name of the format.
Definition XdatcarReader.hpp:29
Definition TrajectoryLoader.hpp:24