| 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_SYMBOLATOMTYPER_H |
| 7 |
#define AVOGADRO_CORE_SYMBOLATOMTYPER_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 SymbolAtomTyper symbolatomtyper.h <avogadro/core/symbolatomtyper.h> |
| 19 |
* @brief The SymbolAtomTyper class is a simple implementation of AtomTyper that |
| 20 |
* assigns element symbols to each atom. |
| 21 |
*/ |
| 22 |
class AVOGADROCORE_EXPORT SymbolAtomTyper : public AtomTyper<std::string> |
| 23 |
{ |
| 24 |
public: |
| 25 |
explicit SymbolAtomTyper(const Molecule* mol = nullptr); |
| 26 |
~SymbolAtomTyper() override = default; |
| 27 |
|
| 28 |
protected: |
| 29 |
std::string type(const Atom& atom) override; |
| 30 |
}; |
| 31 |
|
| 32 |
} // namespace Avogadro::Core |
| 33 |
|
| 34 |
#endif // AVOGADRO_CORE_SYMBOLATOMTYPER_H |