Go to the documentation of this file.00001
00002 #ifndef CRadialVelocityReferenceCode_H
00003 #define CRadialVelocityReferenceCode_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 RadialVelocityReferenceCodeMod
00054 {
00057
00058 const char *const revision = "1.9";
00059 const int version = 1;
00060
00061 enum RadialVelocityReferenceCode
00062 {
00063 LSRD
00064 ,
00065 LSRK
00066 ,
00067 GALACTO
00068 ,
00069 BARY
00070 ,
00071 GEO
00072 ,
00073 TOPO
00075 };
00076 typedef RadialVelocityReferenceCode &RadialVelocityReferenceCode_out;
00077 }
00078 #endif
00079
00080 using namespace std;
00081
00086 class CRadialVelocityReferenceCode {
00087 public:
00088
00093 static const std::string& sLSRD;
00095 static const std::string& sLSRK;
00097 static const std::string& sGALACTO;
00099 static const std::string& sBARY;
00101 static const std::string& sGEO;
00103 static const std::string& sTOPO;
00110 static int version() ;
00111
00112
00118 static string revision() ;
00119
00120
00125 static unsigned int size() ;
00126
00127
00133 static std::string name(const RadialVelocityReferenceCodeMod::RadialVelocityReferenceCode& e);
00134
00138 static std::string toString(const RadialVelocityReferenceCodeMod::RadialVelocityReferenceCode& f) { return name(f); }
00139
00145 static const std::vector<std::string> names();
00146
00147
00148
00149 static RadialVelocityReferenceCodeMod::RadialVelocityReferenceCode newRadialVelocityReferenceCode(const std::string& name);
00150
00156 static RadialVelocityReferenceCodeMod::RadialVelocityReferenceCode literal(const std::string& name);
00157
00163 static RadialVelocityReferenceCodeMod::RadialVelocityReferenceCode from_int(unsigned int i);
00164
00165
00166 private:
00167
00168 CRadialVelocityReferenceCode();
00169 CRadialVelocityReferenceCode(const CRadialVelocityReferenceCode&);
00170 CRadialVelocityReferenceCode& operator=(const CRadialVelocityReferenceCode&);
00171
00172 static string badString(const string& name) ;
00173 static string badInt(unsigned int i) ;
00174
00175 };
00176
00177 #endif