ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Enums.h
Go to the documentation of this file.
00001 
00006 #ifndef ENUM_DECAYTYPE
00007 #define ENUM_DECAYTYPE //!<Inclusion guard
00008 
00014 enum DecayType
00015   {
00016     BetaMinus, 
00017     BetaPlus 
00018   }; 
00019 #endif
00020 
00021 #ifndef ENUM_RECORDTYPE
00022 #define ENUM_RECORDTYPE
00023 #include "DataFileException.h"
00024 
00029 enum RecordType
00030   {
00031     IdentificationRecord_=0, 
00032     HistoryRecord_=1, 
00033     CrossReferenceRecord_=2, 
00034     CommentRecord_=3, 
00035     ParentRecord_=4, 
00036     NormalizationRecord_=5, 
00037     ProductionNormalizationRecord_=6, 
00038     LevelRecord_=7, 
00039     BetaMinusRecord_=8, 
00040     BetaPlusRecord_=9, 
00041     AlphaRecord_=10, 
00042     DelayedParticleRecord_=11, 
00043     GammaRecord_=12, 
00044     QValueRecord_=13 
00045   };
00046 
00047 
00048 inline RecordType intToEnum(int toConvert)
00049 {
00050   switch(toConvert)
00051     {
00052     case IdentificationRecord_:
00053       return IdentificationRecord_;
00054     case HistoryRecord_:
00055       return HistoryRecord_;
00056     case CrossReferenceRecord_:
00057       return CrossReferenceRecord_;
00058     case CommentRecord_:
00059       return CommentRecord_;
00060     case ParentRecord_:
00061       return ParentRecord_;
00062     case NormalizationRecord_:
00063       return NormalizationRecord_;
00064     case ProductionNormalizationRecord_:
00065       return ProductionNormalizationRecord_;
00066     case LevelRecord_:
00067       return LevelRecord_;
00068     case BetaMinusRecord_:
00069       return BetaMinusRecord_;
00070     case BetaPlusRecord_:
00071       return BetaPlusRecord_;
00072     case AlphaRecord_:
00073       return AlphaRecord_;
00074     case DelayedParticleRecord_:
00075       return DelayedParticleRecord_;
00076     case GammaRecord_:
00077       return GammaRecord_;
00078     case QValueRecord_:
00079       return QValueRecord_;
00080     }
00081   throw DataFileException("You have called with an invalid number");
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