ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
MassObject.h
Go to the documentation of this file.
00001 
00011 using namespace std;
00012 #ifndef STRING
00013 #define STRING //!<Inclusion guard
00014 #include <string>
00015 #endif
00016 
00017 #ifndef ALGORITHM
00018 #define ALGORITHM //!<Inclusion guard.
00019 #include <algorithm>
00020 #endif
00021 
00022 #include "Nukleid.h"
00023 
00024 #ifndef MASSOBJECT_H
00025 #define MASSOBJECT_H //!<Inclusion guard.
00026 
00030 struct ExperimentalValue
00031 {
00032   double value; 
00033   double deltaValue; 
00034   bool isTheoretical; 
00035   bool nonCalculable; 
00036 };
00037   
00042 class MassObject
00043 {
00044  public:  
00045   MassObject(); 
00046   MassObject(string massString 
00047              ); 
00048   Nukleid getNukleid() const; 
00049   ExperimentalValue getMassExcess() const;
00050   ExperimentalValue getBindingEnergy() const; 
00051   ExperimentalValue getBetaDecayEnergy() const;
00052   ExperimentalValue getAtomicMass() const; 
00053  protected:
00054   ExperimentalValue stringsToExperimentalValue(string value, 
00055                                                string deltaValue 
00056                                                ); 
00057 
00058   double stringToDouble(string myString 
00059                         ); 
00060   string trimString(string toTrim 
00061                     ); 
00062   
00063   Nukleid myNukleid; 
00064   ExperimentalValue massExcess; 
00065   ExperimentalValue bindingEnergy; 
00066   ExperimentalValue betaDecayEnergy; 
00067   ExperimentalValue atomicMass; 
00068 
00069 };
00070 #endif
 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