Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
CarWriter.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 "Accelrys CAR"; }
24 [[nodiscard]] std::vector<std::string> getExtensions() const override { return {"car"}; }
25
26 void write(const std::string &filepath, const correlation::core::Cell &cell,
27 const StructureWriterOptions &options = {}) const override;
28};
29
30} // 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 Accelrys .car files with periodic boundary conditions.
Definition CarWriter.hpp:21
std::string getName() const override
Returns the display name of the structure format.
Definition CarWriter.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 CarWriter.cpp:72
std::vector< std::string > getExtensions() const override
Returns a list of supported file extensions.
Definition CarWriter.hpp:24
Definition BaseStructureWriter.hpp:16
Configuration options for serializing atomic structure files.
Definition BaseStructureWriter.hpp:21