![]() |
ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
|
The Isotop class wrapps all the datasets concerning a specific nukleid. More...
#include <Isotop.h>
Public Member Functions | |
Isotop (list< list< string > > indata) | |
Constructor, constructs all Datasets from indata. | |
~Isotop () | |
Destructor. | |
Nukleid | getNukleid () const |
Gets the Nukleid associated with this Isotop. | |
list< Dataset * > | getDatasets () const |
Gets all datasets for this Isotop. | |
Protected Attributes | |
list< Dataset * > | myDatasets |
Pointers to all datasets in this Nukleid. | |
Nukleid | myNukleid |
The specifik Nukleid. |
The Isotop class wrapps all the datasets concerning a specific nukleid.
Isotop::Isotop | ( | list< list< string > > | indata | ) |
Constructor, constructs all Datasets from indata.
indata | Each list in this list of lists of strings contains the ENSDF records for a dataset. |
Definition at line 3 of file Isotop.cpp.
References myDatasets, and myNukleid.
{ for(list< list<string> >::iterator it = indata.begin(); it!=indata.end(); ++it) { try { myDatasets.push_back(new Dataset(*it)); } catch(exception &ex) { throw DataFileException(ex.what()); } } for(list<Dataset*>::iterator it = myDatasets.begin(); it!=myDatasets.end(); it++) { list<IdentificationRecord* > myIdentificationRecords = (*it)->getIdentificationRecords(); if(!myIdentificationRecords.empty()) { myNukleid = myIdentificationRecords.front()->getNukleid(); } } }
list< Dataset * > Isotop::getDatasets | ( | ) | const |
Gets all datasets for this Isotop.
Definition at line 36 of file Isotop.cpp.
References myDatasets.
Referenced by DataQueryIsomer::DetectInterestingStuffWithThisIsotope(), and DataQueryBetaGamma::DetectInterestingStuffWithThisIsotope().
{ return myDatasets; }
Nukleid Isotop::getNukleid | ( | ) | const |
Gets the Nukleid associated with this Isotop.
Definition at line 41 of file Isotop.cpp.
References myNukleid.
Referenced by DataQueryIsomer::DetectInterestingStuffWithThisIsotope(), and DataQueryBetaGamma::DetectInterestingStuffWithThisIsotope().
{ return myNukleid; }