Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
PoscarWriter.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
12
14
22public:
23 [[nodiscard]] std::string getName() const override { return "VASP POSCAR"; }
24 [[nodiscard]] std::vector<std::string> getExtensions() const override {
25 return {"vasp", "poscar", "contcar"};
26 }
27
28 void write(const std::string &filepath, const correlation::core::Cell &cell,
29 const StructureWriterOptions &options = {}) const override;
30};
31
32} // namespace correlation::writers::structure
Abstract base class and options for structure file format writers.
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
Writer for VASP POSCAR and CONTCAR files.
Definition PoscarWriter.hpp:21
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition PoscarWriter.hpp:24
void write(const std::string &filepath, const correlation::core::Cell &cell, const StructureWriterOptions &options={}) const override
Writes a simulation cell to a target file path.
Definition PoscarWriter.cpp:120
std::string getName() const override
Returns the display name of the structure format.
Definition PoscarWriter.hpp:23
Definition BaseStructureWriter.hpp:16
Configuration options for serializing atomic structure files.
Definition BaseStructureWriter.hpp:21