23 [[nodiscard]] std::string
getName()
const override {
return "CASTEP Cell"; }
24 [[nodiscard]] std::vector<std::string>
getExtensions()
const override {
return {
"cell"}; }
Abstract base class and options for structure file format writers.
Represents the simulation cell (periodic box).
Definition Cell.hpp:30
BaseStructureWriter()=default
Writer for CASTEP .cell structure files.
Definition CellWriter.hpp:21
std::string getName() const override
Returns the display name of the structure format.
Definition CellWriter.hpp:23
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 CellWriter.cpp:93
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition CellWriter.hpp:24
Definition BaseStructureWriter.hpp:16
Configuration options for serializing atomic structure files.
Definition BaseStructureWriter.hpp:21