Debian Codegraph @

avogadro/io/sdfformat.cpp

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 #include "sdfformat.h"
7
8 namespace Avogadro::Io {
9
10 SdfFormat::SdfFormat() : MdlFormat()
11 {
12 m_writeProperties = true;
13 }
14
15 SdfFormat::~SdfFormat() {}
16
17 bool SdfFormat::read(std::istream& in, Core::Molecule& mol)
18 {
19 return MdlFormat::read(in, mol);
20 }
21
22 bool SdfFormat::write(std::ostream& out, const Core::Molecule& mol)
23 {
24 return MdlFormat::write(out, mol);
25 }
26
27 std::vector<std::string> SdfFormat::fileExtensions() const
28 {
29 std::vector<std::string> ext;
30 ext.emplace_back("sdf");
31 ext.emplace_back("sd3");
32 return ext;
33 }
34
35 std::vector<std::string> SdfFormat::mimeTypes() const
36 {
37 std::vector<std::string> mime;
38 mime.emplace_back("chemical/x-mdl-molfile");
39 return mime;
40 }
41
42 } // namespace Avogadro::Io