ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
LevelRecord.cpp
Go to the documentation of this file.
00001 #include "LevelRecord.h"
00002 LevelRecord::LevelRecord(list<string> cardArg, QValueRecord* qValArg)
00003   :Record(cardArg), QValueRecordChildrenWrapper(qValArg)
00004 {
00005   processCard();
00006 }
00007 
00008 void LevelRecord::processCard()
00009 {
00010   energy = cardToDouble(10, 19);
00011   halfLife = parseHalfLife(40, 49);
00012 }
00013 
00014 double LevelRecord::getEnergy() const
00015 {
00016   return energy;
00017 }
00018 
00019 double LevelRecord::getHalfLife() const
00020 {
00021   return halfLife;
00022 }
00023 
00024 
00025 bool LevelRecord::operator == (const LevelRecord & rhs) const
00026 {
00027   const ChildAddable<Child<LevelRecord> > * temp1 = this;
00028   const ChildAddable<Child<LevelRecord> > * temp2 = &rhs;
00029   double other = (*temp1==*temp2);
00030   return (doubleEquality(energy,rhs.energy,1))&&(doubleEquality(halfLife,rhs.halfLife)&&(getNukleid()==rhs.getNukleid())&& other);
00031 }
 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