ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Public Member Functions | Protected Attributes
Isotop Class Reference

The Isotop class wrapps all the datasets concerning a specific nukleid. More...

#include <Isotop.h>

List of all members.

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.

Detailed Description

The Isotop class wrapps all the datasets concerning a specific nukleid.

Author:
Rikard Lundmark

Definition at line 37 of file Isotop.h.


Constructor & Destructor Documentation

Isotop::Isotop ( list< list< string > >  indata)

Constructor, constructs all Datasets from indata.

Parameters:
indataEach 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();
        }
    }
}

Member Function Documentation

list< Dataset * > Isotop::getDatasets ( ) const

Gets all datasets for this Isotop.

Returns:
a list containing pointers to each Dataset.

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.

Returns:
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;
}

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark