Reads an ARC file and returns a vector of correlation::core::Cell objects.
More...
#include <ArcReader.hpp>
|
| static std::vector< correlation::core::Cell > | read (const std::string &file_name, const std::function< void(float, const std::string &)> &progress_callback=nullptr) |
| | Low-level parser for the specific file format.
|
|
| static void | updateProgress (std::streampos current_pos, std::streampos file_size, std::streampos &last_progress_pos, std::streamoff update_interval, const std::function< void(float, const std::string &)> &progress_callback) |
| static void | parseLine (const std::string &line, correlation::core::Cell &temp_cell, std::vector< correlation::core::Cell > &frames) |
Reads an ARC file and returns a vector of correlation::core::Cell objects.
◆ getExtensions()
| std::vector< std::string > correlation::readers::ArcReader::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::ArcReader::getName |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isTrajectory()
| bool correlation::readers::ArcReader::isTrajectory |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ parseLine()
◆ read()
| std::vector< correlation::core::Cell > correlation::readers::ArcReader::read |
( |
const std::string & | file_name, |
|
|
const std::function< void(float, const std::string &)> & | progress_callback = nullptr ) |
|
static |
Low-level parser for the specific file format.
- Parameters
-
| file_name | Path to the source file. |
| progress_callback | Optional callback for progress updates. |
- Returns
- A vector of parsed frames.
◆ readStructure()
| correlation::core::Cell correlation::readers::ArcReader::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::ArcReader::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.
◆ updateProgress()
| void correlation::readers::ArcReader::updateProgress |
( |
std::streampos | current_pos, |
|
|
std::streampos | file_size, |
|
|
std::streampos & | last_progress_pos, |
|
|
std::streamoff | update_interval, |
|
|
const std::function< void(float, const std::string &)> & | progress_callback ) |
|
staticprivate |
The documentation for this class was generated from the following files: