20 std::string
getName()
const override {
return "PDB Reader"; }
21 std::vector<std::string>
getExtensions()
const override {
return {
".pdb",
".ent"}; }
25 const std::string &filename,
26 std::function<
void(
float,
const std::string &)> progress_callback =
nullptr)
override;
29 const std::string &filename,
30 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
Handles parsing of PDB (.pdb) structure files.
Definition PdbReader.hpp:18
std::string getName() const override
Returns the display name of the format.
Definition PdbReader.hpp:20
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 PdbReader.cpp:98
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition PdbReader.hpp:21
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 PdbReader.cpp:129
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition PdbReader.hpp:22
Definition TrajectoryLoader.hpp:24