Reads a Materials Studio .car file and returns a correlation::core::Cell object.
More...
#include <CarReader.hpp>
Reads a Materials Studio .car file and returns a correlation::core::Cell object.
◆ getExtensions()
| std::vector< std::string > correlation::readers::CarReader::getExtensions |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns a list of supported file extensions.
- Returns
- A vector of strings containing extensions (e.g. {".cif", ".ext"}).
Implements correlation::readers::BaseReader.
◆ getName()
| std::string correlation::readers::CarReader::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isTrajectory()
| bool correlation::readers::CarReader::isTrajectory |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ read()
Low-level parser for the specific file format.
- Parameters
-
| file_name | Path to the source file. |
- Returns
- The parsed simulation cell.
◆ readStructure()
| correlation::core::Cell correlation::readers::CarReader::readStructure |
( |
const std::string & | filename, |
|
|
std::function< void(float, const std::string &)> | progress_callback = nullptr ) |
|
overridevirtual |
Reads an atomic structure from a file.
- Parameters
-
| [in] | filename | Path to the file to be read. |
| [in] | progress_callback | Optional callback to report progress [0.0, 1.0]. |
- Returns
- A Cell object containing the loaded structure.
Implements correlation::readers::BaseReader.
◆ readTrajectory()
| correlation::core::Trajectory correlation::readers::CarReader::readTrajectory |
( |
const std::string & | filename, |
|
|
std::function< void(float, const std::string &)> | progress_callback = nullptr ) |
|
overridevirtual |
Reads a trajectory from a file.
- Parameters
-
| [in] | filename | Path to the file to be read. |
| [in] | progress_callback | Optional callback to report progress [0.0, 1.0]. |
- Returns
- A Trajectory object containing all loaded frames.
Implements correlation::readers::BaseReader.
The documentation for this class was generated from the following files: