ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Nukleid.h
Go to the documentation of this file.
00001 
00013 #ifndef STRING
00014 #define STRING //!<Inclusion guard
00015 #include <string>
00016 #endif
00017 
00018 #ifndef SSTREAM
00019 #define SSTREAM //!<Inclusion guard.
00020 #include <sstream>
00021 #endif
00022 
00023 #ifndef STDLIB_H
00024 #define STDLIB_H //!<Inclusion guard
00025 #include <stdlib.h>
00026 #endif
00027 
00028 #ifndef UTILITY
00029 #define UTILITY //!<Inclusion guard.
00030 #include <utility>
00031 #endif
00032 
00033 #include "DataFileException.h"
00034 #include "ElementLookupTable.h"
00035 
00036 using namespace std;
00037 using namespace rel_ops;
00038 
00039 #ifndef NUKLEID_H
00040 #define NUKLEID_H //!<Inclusion guard.
00041 
00046 class Nukleid
00047 {
00048 public:
00049   Nukleid(); 
00050   Nukleid(string nucleid 
00051           ); 
00052   string getElement() const; 
00053   int getZ() const; 
00054   int getA() const; 
00055   string toString() const; 
00056 
00057   bool operator== (const Nukleid &other 
00058                    ) const; 
00059   bool operator> (const Nukleid &other 
00060                   ) const; 
00061   bool operator< (const Nukleid &other 
00062                   ) const; 
00063 
00064   static void parseNukleidName(string nucleid, 
00065                                short unsigned int &mass, 
00066                                string &element 
00067                                ); 
00068   
00069  protected:
00070   short unsigned int parseAtomicNumber(string elementToParse 
00071                                        ); 
00072 
00073   unsigned short int Z; 
00074   unsigned short int A; 
00075   string element; 
00076   string name; 
00077 
00078  private:
00079   string trimString(string toTrim 
00080                     );
00081 };
00082 
00083 #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