Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
DftbReader.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11#include "BaseReader.hpp"
12
13namespace correlation::readers {
14
19class DftbReader : public BaseReader {
20public:
21 [[nodiscard]] std::string getName() const override { return "DFTB+ Reader"; }
22 [[nodiscard]] std::vector<std::string> getExtensions() const override {
23 return {".gen", ".dftb", ".hsd"};
24 }
25 [[nodiscard]] bool isTrajectory() const override { return false; }
26
28 const std::string &filename,
29 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
30
32 const std::string &filename,
33 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
34};
35
36} // 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
Handles parsing of DFTB+ GenFormat (.gen) and HSD input geometry structures.
Definition DftbReader.hpp:19
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition DftbReader.hpp:22
std::string getName() const override
Returns the display name of the format.
Definition DftbReader.hpp:21
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 DftbReader.cpp:175
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 DftbReader.cpp:150
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition DftbReader.hpp:25
Definition TrajectoryLoader.hpp:24