Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
QEReader.hpp
Go to the documentation of this file.
1
8#pragma once
9
10#include "BaseReader.hpp"
11
12namespace correlation::readers {
13
20class QEReader : public BaseReader {
21public:
22 std::string getName() const override { return "Quantum ESPRESSO Reader"; }
23 std::vector<std::string> getExtensions() const override {
24 return {".pwi", ".pwo", ".in", ".out"};
25 }
26 bool isTrajectory() const override { return true; }
27
29 const std::string &filename,
30 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
31
33 const std::string &filename,
34 std::function<void(float, const std::string &)> progress_callback = nullptr) override;
35};
36
37} // 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 Quantum ESPRESSO output and input files.
Definition QEReader.hpp:20
bool isTrajectory() const override
Returns true if this reader supports trajectory files.
Definition QEReader.hpp:26
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition QEReader.hpp:23
std::string getName() const override
Returns the display name of the format.
Definition QEReader.hpp:22
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 QEReader.cpp:116
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 QEReader.cpp:106
Definition TrajectoryLoader.hpp:24