Debian Codegraph @

avogadro/io/turbomoleformat.h

raw
1 /******************************************************************************
2 This source file is part of the Avogadro project.
3 This source code is released under the 3-Clause BSD License, (see "LICENSE").
4 ******************************************************************************/
5
6 #ifndef AVOGADRO_IO_TURBOMOLEFORMAT_H
7 #define AVOGADRO_IO_TURBOMOLEFORMAT_H
8
9 #include "fileformat.h"
10
11 namespace Avogadro::Io {
12
13 /**
14 * @class TurbomoleFormat turbomoleformat.h <avogadro/io/turbomoleformat.h>
15 * @brief Implementation of the Turbomole coord format.
16 * @author Geoffrey Hutchison
17 */
18
19 class AVOGADROIO_EXPORT TurbomoleFormat : public FileFormat
20 {
21 public:
22 TurbomoleFormat() = default;
23 ~TurbomoleFormat() override = default;
24
25 Operations supportedOperations() const override
26 {
27 return ReadWrite | File | Stream | String;
28 }
29
30 FileFormat* newInstance() const override { return new TurbomoleFormat; }
31 std::string identifier() const override
32 {
33 return "Avogadro: Turbomole Coord";
34 }
35 std::string name() const override { return "Turbomole"; }
36 std::string description() const override
37 {
38 return "Generic format that tabulates atomic symbols and 3D positions.";
39 }
40
41 std::string specificationUrl() const override
42 {
43 return "https://xtb-docs.readthedocs.io/en/latest/"
44 "geometry.html#turbomole-coordinate-input";
45 }
46
47 std::vector<std::string> fileExtensions() const override;
48 std::vector<std::string> mimeTypes() const override;
49
50 [[nodiscard]] bool read(std::istream& inStream,
51 Core::Molecule& molecule) override;
52 [[nodiscard]] bool write(std::ostream& outStream,
53 const Core::Molecule& molecule) override;
54 };
55
56 } // namespace Avogadro::Io
57
58 #endif // AVOGADRO_IO_TURBOMOLEFORMAT_H