/****************************************************************************** This source file is part of the Avogadro project. This source code is released under the 3-Clause BSD License, (see "LICENSE"). ******************************************************************************/ #ifndef AVOGADRO_IO_XYZFORMAT_H #define AVOGADRO_IO_XYZFORMAT_H #include "fileformat.h" namespace Avogadro::Io { /** * @class XyzFormat xyzformat.h * @brief Implementation of the generic xyz format. * @author Allison Vacanti */ class AVOGADROIO_EXPORT XyzFormat : public FileFormat { public: XyzFormat() = default; ~XyzFormat() override = default; Operations supportedOperations() const override { return ReadWrite | MultiMolecule | File | Stream | String; } FileFormat* newInstance() const override { return new XyzFormat; } std::string identifier() const override { return "Avogadro: XYZ"; } std::string name() const override { return "XYZ"; } std::string description() const override { return "Generic format that tabulates atomic symbols and 3D positions."; } std::string specificationUrl() const override { return "https://en.wikipedia.org/wiki/XYZ_file_format"; // "http://openbabel.org/wiki/XYZ"; } std::vector fileExtensions() const override; std::vector mimeTypes() const override; [[nodiscard]] bool read(std::istream& inStream, Core::Molecule& molecule) override; [[nodiscard]] bool write(std::ostream& outStream, const Core::Molecule& molecule) override; }; } // namespace Avogadro::Io #endif // AVOGADRO_IO_XYZFORMAT_H