#include </home/clem/local/src/opie/noncore/apps/oxygen/kmolelements.h>
Inheritance diagram for SubUnit:

Public Member Functions | |
| SubUnit () | |
| virtual | ~SubUnit () |
| virtual double | getWeight (QDict< SubUnit > *elstable) const |
| virtual void | addTo (ElementList &els, double coef)=0 |
| virtual QString | getName () const |
| virtual void | writeOut (QString &line)=0 |
Static Public Member Functions | |
| static SubUnit * | makeSubUnit (QString line) |
Definition at line 30 of file kmolelements.h.
|
|
A generic chemical entity. Can be an element or a group. Definition at line 16 of file kmolelements.cpp. |
|
|
Definition at line 18 of file kmolelements.cpp. |
|
||||||||||||
|
Add THIS to ELS. Implemented in ElementList, and Element. Referenced by KMolCalc::readGroup(). |
|
|
Reimplemented in ElementList, and Element. Definition at line 44 of file kmolelements.cpp. Referenced by KMolCalc::readMwfile(). |
|
|
Get the molecular weight of THIS, based on the data from ELSTABLE. Reimplemented in ElementList, and Element. Definition at line 51 of file kmolelements.cpp. Referenced by ElementList::getEA(), and ElementList::getWeight(). |
|
|
Construct a subunit and return a pointer to it. The syntax of LINE is the one used in the element definition file. Definition at line 24 of file kmolelements.cpp. References ElementList::addElement(), QTextStream::eof(), IO_ReadOnly, name, str, QString::toDouble(), and ws(). Referenced by KMolCalc::readMwfile(). |
|
|
Write THIS to LINE, in the format used in the definition file. Implemented in ElementList, and Element. |
1.4.2