Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

SubUnit Class Reference

#include </home/clem/local/src/opie/noncore/apps/oxygen/kmolelements.h>

Inheritance diagram for SubUnit:

Inheritance graph
[legend]
List of all members.

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 SubUnitmakeSubUnit (QString line)

Detailed Description

A generic chemical entity. Can be an element or a group.

Definition at line 30 of file kmolelements.h.


Constructor & Destructor Documentation

SubUnit::SubUnit  ) 
 

A generic chemical entity. Can be an element or a group.

Definition at line 16 of file kmolelements.cpp.

SubUnit::~SubUnit  )  [virtual]
 

Definition at line 18 of file kmolelements.cpp.


Member Function Documentation

virtual void SubUnit::addTo ElementList els,
double  coef
[pure virtual]
 

Add THIS to ELS.

Implemented in ElementList, and Element.

Referenced by KMolCalc::readGroup().

QString SubUnit::getName  )  const [virtual]
 

Reimplemented in ElementList, and Element.

Definition at line 44 of file kmolelements.cpp.

Referenced by KMolCalc::readMwfile().

double SubUnit::getWeight QDict< SubUnit > *  elstable  )  const [virtual]
 

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().

SubUnit * SubUnit::makeSubUnit QString  line  )  [static]
 

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().

virtual void SubUnit::writeOut QString line  )  [pure virtual]
 

Write THIS to LINE, in the format used in the definition file.

Implemented in ElementList, and Element.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:52:48 2005 for OPIE by  doxygen 1.4.2