Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
IStructureReader.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11#include "core/Cell.hpp"
12
13#include <functional>
14#include <string>
15
16namespace correlation::readers {
17
22using ProgressCallback = std::function<void(float, const std::string &)>;
23
28public:
29 IStructureReader() = default;
30 virtual ~IStructureReader() = default;
31
36
43 [[nodiscard]] virtual correlation::core::Cell
44 readStructure(const std::string &filename, ProgressCallback progress_callback = nullptr) = 0;
45};
46
47} // namespace correlation::readers
Simulation cell structure with periodic boundary conditions.
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
IStructureReader & operator=(const IStructureReader &)=delete
IStructureReader(IStructureReader &&)=delete
IStructureReader(const IStructureReader &)=delete
virtual correlation::core::Cell readStructure(const std::string &filename, ProgressCallback progress_callback=nullptr)=0
Reads an atomic structure from a file.
IStructureReader & operator=(IStructureReader &&)=delete
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