Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
CellReader.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#include "BaseReader.hpp"
11
12#include <string>
13
14namespace correlation::readers {
15
19class CellReader : public BaseReader {
20public:
21 std::string getName() const override { return "CASTEP CELL"; }
22 std::vector<std::string> getExtensions() const override { return {"cell"}; }
23 bool isTrajectory() const override { return false; }
24
26 const std::string &filename,
27 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
28
30 const std::string &filename,
31 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
32
38 static correlation::core::Cell read(const std::string &file_name);
39};
40
41} // namespace correlation::readers
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 CASTEP .cell physical structure format.
Definition CellReader.hpp:19
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 CellReader.cpp:35
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 CellReader.cpp:29
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition CellReader.hpp:23
static correlation::core::Cell read(const std::string &file_name)
Low-level parser for the specific file format.
Definition CellReader.cpp:117
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition CellReader.hpp:22
std::string getName() const override
Returns the display name of the format.
Definition CellReader.hpp:21
Definition TrajectoryLoader.hpp:24