Debian Codegraph @

avogadro/core/nameatomtyper.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_CORE_NAMEATOMTYPER_H
7 #define AVOGADRO_CORE_NAMEATOMTYPER_H
8
9 #include "avogadrocoreexport.h"
10
11 #include <avogadro/core/atomtyper.h>
12
13 #include <string>
14
15 namespace Avogadro::Core {
16
17 /**
18 * @class NameAtomTyper nameatomtyper.h <avogadro/core/nameatomtyper.h>
19 * @brief The NameAtomTyper class is a simple implementation of AtomTyper that
20 * assigns element names to each atom.
21 */
22 class AVOGADROCORE_EXPORT NameAtomTyper : public AtomTyper<std::string>
23 {
24 public:
25 explicit NameAtomTyper(const Molecule* mol = nullptr);
26 ~NameAtomTyper() override = default;
27
28 protected:
29 std::string type(const Atom& atom) override;
30 };
31
32 } // namespace Avogadro::Core
33
34 #endif // AVOGADRO_CORE_NAMEATOMTYPER_H