21 std::string
getName()
const override {
return "CIF"; }
22 std::vector<std::string>
getExtensions()
const override {
return {
"cif"}; }
26 const std::string &filename,
27 std::function<
void(
float,
const std::string &)> progress_callback =
nullptr)
override;
30 const std::string &filename,
31 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 a Crystallographic Information File (.cif).
Definition CifReader.hpp:19
std::string getName() const override
Returns the display name of the format.
Definition CifReader.hpp:21
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 CifReader.cpp:35
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition CifReader.hpp:23
static correlation::core::Cell read(const std::string &file_name)
Low-level parser for the specific file format.
Definition CifReader.cpp:481
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 CifReader.cpp:41
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition CifReader.hpp:22
Definition TrajectoryLoader.hpp:24