57 if (filenames.empty()) {
58 throw std::runtime_error(
"No files provided for trajectory reading.");
60 if (filenames.size() == 1) {
63 throw std::runtime_error(
"Multi-file trajectory reading is not supported for this format.");
Trajectory data structure for time-series atomistic simulations.
This class stores a series of snapshots of a system.
Definition Trajectory.hpp:32
virtual ~ITrajectoryReader()=default
ITrajectoryReader & operator=(ITrajectoryReader &&)=delete
ITrajectoryReader()=default
ITrajectoryReader(ITrajectoryReader &&)=delete
ITrajectoryReader & operator=(const ITrajectoryReader &)=delete
virtual correlation::core::Trajectory readTrajectory(const std::vector< std::string > &filenames, ProgressCallback progress_callback=nullptr)
Reads a trajectory concatenated across multiple files.
Definition ITrajectoryReader.hpp:55
ITrajectoryReader(const ITrajectoryReader &)=delete
virtual correlation::core::Trajectory readTrajectory(const std::string &filename, ProgressCallback progress_callback=nullptr)=0
Reads a trajectory from a file.
Definition TrajectoryLoader.hpp:24
std::function< void(float, const std::string &)> ProgressCallback
Progress report callback function type. Invoked with normalized progress in [0.0, 1....
Definition IStructureReader.hpp:22