kalzium
KalziumNumerationType Class Reference
#include <kalziumnumerationtype.h>

Detailed Description
Base class for a numeration type.It's quite simple, as a numeration doesn't have many data to represent.
Definition at line 74 of file kalziumnumerationtype.h.
Public Member Functions | |
| virtual | ~KalziumNumerationType () |
| virtual QByteArray | name () const =0 |
| virtual QString | description () const =0 |
| virtual QString | item (const int num) const |
| virtual QStringList | items () const |
Static Public Member Functions | |
| static KalziumNumerationType * | instance () |
Protected Member Functions | |
| KalziumNumerationType () | |
Protected Attributes | |
| QStringList | m_items |
Constructor & Destructor Documentation
| KalziumNumerationType::~KalziumNumerationType | ( | ) | [virtual] |
Definition at line 81 of file kalziumnumerationtype.cpp.
| KalziumNumerationType::KalziumNumerationType | ( | ) | [protected] |
Definition at line 77 of file kalziumnumerationtype.cpp.
Member Function Documentation
| KalziumNumerationType * KalziumNumerationType::instance | ( | ) | [static] |
Get its instance.
Reimplemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.
Definition at line 72 of file kalziumnumerationtype.cpp.
| virtual QByteArray KalziumNumerationType::name | ( | ) | const [pure virtual] |
Returns the ID of this numeration type.
Mainly used when saving/loading.
Implemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.
| virtual QString KalziumNumerationType::description | ( | ) | const [pure virtual] |
Returns the description of this numeration type.
Used in all the visible places.
Implemented in KalziumNoneNumerationType, KalziumIUPACNumerationType, KalziumCASNumerationType, and KalziumOldIUPACNumerationType.
| QString KalziumNumerationType::item | ( | const int | num | ) | const [virtual] |
Returns the num 'th item of this numeration type.
Reimplemented in KalziumNoneNumerationType.
Definition at line 85 of file kalziumnumerationtype.cpp.
| QStringList KalziumNumerationType::items | ( | ) | const [virtual] |
Returns all the items of this numeration type.
Reimplemented in KalziumNoneNumerationType.
Definition at line 93 of file kalziumnumerationtype.cpp.
Member Data Documentation
QStringList KalziumNumerationType::m_items [protected] |
Definition at line 107 of file kalziumnumerationtype.h.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference