ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Isotop.cpp
Go to the documentation of this file.
00001 #include "Isotop.h"
00002 
00003 Isotop::Isotop(list < list<string> > indata)
00004 {
00005   for(list< list<string> >::iterator it = indata.begin(); it!=indata.end(); ++it)
00006     {
00007       try
00008         {
00009           myDatasets.push_back(new Dataset(*it));
00010         }
00011       catch(exception &ex)
00012         {
00013           throw DataFileException(ex.what());
00014         }
00015     }
00016   for(list<Dataset*>::iterator it = myDatasets.begin(); it!=myDatasets.end(); it++)
00017     {
00018       list<IdentificationRecord* > myIdentificationRecords = (*it)->getIdentificationRecords();
00019       if(!myIdentificationRecords.empty())
00020         {
00021           myNukleid = myIdentificationRecords.front()->getNukleid();
00022         }
00023     }
00024 }
00025 
00026 Isotop::~Isotop()
00027 {
00028   for(list<Dataset* >::iterator it = myDatasets.begin(); it!=myDatasets.end(); it++)
00029     {
00030       delete *it;
00031       *it=NULL;
00032     }
00033   myDatasets.clear();
00034 }
00035 
00036 list<Dataset* > Isotop::getDatasets() const
00037 {
00038   return myDatasets;
00039 }
00040 
00041 Nukleid Isotop::getNukleid() const
00042 {
00043   return myNukleid;
00044 }
 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