ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
MassTable.h
Go to the documentation of this file.
00001 
00011 using namespace std;
00012 
00013 #ifndef STDIO_H
00014 #define STDIO_H //!<Inclusion guard.
00015 #include <stdio.h>
00016 #endif
00017 
00018 #ifndef STRING
00019 #define STRING //!<Inclusion guard
00020 #include <string>
00021 #endif
00022 
00023 #ifndef VECTOR
00024 #define VECTOR //!<Inclusion guard
00025 #include <vector>
00026 #endif
00027 
00028 #ifndef LIST
00029 #define LIST //!<Inclusion guard
00030 #include <list>
00031 #endif
00032 
00033 #include "MassObject.h"
00034 #include "DataFileException.h"
00035 #include "Nukleid.h"
00036 #include "VerbosePrinterEventEnabled.h"
00037 #include "VerbosePrinter.h"
00038 
00039 #define PROTONMASS (1.00782503207) //!<The mass of a proton.
00040 #define NEUTRONMASS (1.00866491574) //!<The mass of a neutron.
00041 
00042 #ifndef MASSTABLE
00043 #define MASSTABLE
00044 
00047 class MassTable: public VerbosePrinterEventEnabled
00048 {
00049  public:
00050   MassTable(string filename, 
00051             VerbosePrinter * toRegister = NULL 
00052             ); 
00053   list<MassObject> getMassObjects() const; 
00054 
00055   const MassObject getMassObject(Nukleid toGet 
00056                                  ) const; 
00057 
00058   const MassObject getMassObject(unsigned short int Z, 
00059                                  unsigned short int A 
00060                                  ) const; 
00061  private:
00062   list<MassObject> myMasses; 
00063 };
00064 #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