Debian Codegraph @

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