Go to the documentation of this file.00001
00002 #ifndef CFieldCode_H
00003 #define CFieldCode_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 FieldCodeMod
00054 {
00057
00058 const char *const revision = "1.9";
00059 const int version = 1;
00060
00061 enum FieldCode
00062 {
00063 NONE
00065 };
00066 typedef FieldCode &FieldCode_out;
00067 }
00068 #endif
00069
00070 using namespace std;
00071
00076 class CFieldCode {
00077 public:
00078
00083 static const std::string& sNONE;
00090 static int version() ;
00091
00092
00098 static string revision() ;
00099
00100
00105 static unsigned int size() ;
00106
00107
00113 static std::string name(const FieldCodeMod::FieldCode& e);
00114
00118 static std::string toString(const FieldCodeMod::FieldCode& f) { return name(f); }
00119
00125 static const std::vector<std::string> names();
00126
00127
00128
00129 static FieldCodeMod::FieldCode newFieldCode(const std::string& name);
00130
00136 static FieldCodeMod::FieldCode literal(const std::string& name);
00137
00143 static FieldCodeMod::FieldCode from_int(unsigned int i);
00144
00145
00146 private:
00147
00148 CFieldCode();
00149 CFieldCode(const CFieldCode&);
00150 CFieldCode& operator=(const CFieldCode&);
00151
00152 static string badString(const string& name) ;
00153 static string badInt(unsigned int i) ;
00154
00155 };
00156
00157 #endif