Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
StructureConverter.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
11#include <string>
12
14
19 std::string from_format;
20 std::string to_format;
21 bool fractional{true};
22};
23
35void convertStructure(const std::string &input_file, const std::string &output_file,
36 const StructureConvertOptions &options = {});
37
38} // namespace correlation::writers::structure
Definition BaseStructureWriter.hpp:16
void convertStructure(const std::string &input_file, const std::string &output_file, const StructureConvertOptions &options={})
Converts an atomic structure from one format to another.
Definition StructureConverter.cpp:79
Options for converting between atomic structure files.
Definition StructureConverter.hpp:18
std::string from_format
Optional explicit source format name or extension.
Definition StructureConverter.hpp:19
bool fractional
Coordinate convention (fractional vs Cartesian).
Definition StructureConverter.hpp:21
std::string to_format
Optional explicit destination format name or extension.
Definition StructureConverter.hpp:20