23 [[nodiscard]] std::string
getName()
const override {
return "VASP POSCAR"; }
25 return {
"vasp",
"poscar",
"contcar"};
Abstract base class and options for structure file format writers.
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
BaseStructureWriter()=default
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