26 std::string
getName()
const override {
return "VASP POSCAR"; }
27 std::vector<std::string>
getExtensions()
const override {
return {
"poscar",
"contcar",
"vasp"}; }
31 const std::string &filename,
32 std::function<
void(
float,
const std::string &)> progress_callback =
nullptr)
override;
35 const std::string &filename,
36 std::function<
void(
float,
const std::string &)> progress_callback =
nullptr)
override;
Abstract base class for all file format readers.
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 POSCAR and CONTCAR structure files.
Definition VaspReader.hpp:24
static correlation::core::Cell read(const std::string &file_name)
Low-level parser for POSCAR/CONTCAR files.
Definition VaspReader.cpp:280
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition VaspReader.hpp:27
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 VaspReader.cpp:275
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition VaspReader.hpp:28
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 VaspReader.cpp:269
std::string getName() const override
Returns the display name of the format.
Definition VaspReader.hpp:26
Definition TrajectoryLoader.hpp:24