source: molecuilder/src/atom_atominfo.cpp@ 025ca2

Last change on this file since 025ca2 was e7e088, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Added Descriptor that allows querying of atoms by their type

  • Property mode set to 100644
File size: 528 bytes
Line 
1/*
2 * atom_atominfo.cpp
3 *
4 * Created on: Oct 19, 2009
5 * Author: heber
6 */
7
8#include "periodentafel.hpp"
9#include "World.hpp"
10#include "atom_atominfo.hpp"
11
12/** Constructor of class AtomInfo.
13 */
14AtomInfo::AtomInfo() : type(NULL) {};
15
16/** Destructor of class AtomInfo.
17 */
18AtomInfo::~AtomInfo()
19{
20};
21
22element *AtomInfo::getType(){
23 return type;
24}
25
26void AtomInfo::setType(element* _type) {
27 type = _type;
28}
29
30void AtomInfo::setType(int Z) {
31 element *elem = World::get()->getPeriode()->FindElement(Z);
32 setType(elem);
33}
Note: See TracBrowser for help on using the repository browser.