Debian Codegraph @

avogadro/core/nameatomtyper.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 "nameatomtyper.h"
7
8 #include "elements.h"
9
10 namespace Avogadro::Core {
11
12 NameAtomTyper::NameAtomTyper(const Molecule* mol) : AtomTyper<std::string>(mol)
13 {
14 }
15
16 std::string NameAtomTyper::type(const Atom& atom)
17 {
18 return std::string(Elements::name(atom.atomicNumber()));
19 }
20
21 } // namespace Avogadro::Core