Go to the documentation of this file.00001
00002 #ifndef CTimeSampling_H
00003 #define CTimeSampling_H
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #ifndef __cplusplus
00040 #error This is a C++ include file and cannot be used from plain C
00041 #endif
00042
00043 #include <string>
00044 #include <vector>
00048 #ifndef WITHOUT_ACS
00049 #include <almaEnumerations_IFC.h>
00050 #else
00051
00052
00053 namespace TimeSamplingMod
00054 {
00057
00058 const char *const revision = "1.9";
00059 const int version = 1;
00060
00061 enum TimeSampling
00062 {
00063 SUBINTEGRATION
00064 ,
00065 INTEGRATION
00067 };
00068 typedef TimeSampling &TimeSampling_out;
00069 }
00070 #endif
00071
00072 using namespace std;
00073
00078 class CTimeSampling {
00079 public:
00080
00085 static const std::string& sSUBINTEGRATION;
00087 static const std::string& sINTEGRATION;
00094 static int version() ;
00095
00096
00102 static string revision() ;
00103
00104
00109 static unsigned int size() ;
00110
00111
00117 static std::string name(const TimeSamplingMod::TimeSampling& e);
00118
00122 static std::string toString(const TimeSamplingMod::TimeSampling& f) { return name(f); }
00123
00129 static const std::vector<std::string> names();
00130
00131
00132
00133 static TimeSamplingMod::TimeSampling newTimeSampling(const std::string& name);
00134
00140 static TimeSamplingMod::TimeSampling literal(const std::string& name);
00141
00147 static TimeSamplingMod::TimeSampling from_int(unsigned int i);
00148
00149
00150 private:
00151
00152 CTimeSampling();
00153 CTimeSampling(const CTimeSampling&);
00154 CTimeSampling& operator=(const CTimeSampling&);
00155
00156 static string badString(const string& name) ;
00157 static string badInt(unsigned int i) ;
00158
00159 };
00160
00161 #endif