00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00013 #ifndef HxValueType_h
00014 #define HxValueType_h
00015
00016 #include "HxIoFwd.h"
00017 #include "HxString.h"
00018
00019
00026 enum HxValueType { INT_VALUE, REAL_VALUE, COMPLEX_VALUE };
00027
00028 extern L_HXBASIS STD_OSTREAM&
00029 HxValueType_put(STD_OSTREAM& os, HxValueType val);
00030
00031 inline STD_OSTREAM&
00032 operator<<(STD_OSTREAM& os, HxValueType val)
00033 {
00034 return HxValueType_put(os, val);
00035 }
00036
00037 inline HxString
00038 makeString(HxValueType val) {
00039 switch (val) {
00040 case INT_VALUE:
00041 return HxString("INT_VALUE");
00042 case REAL_VALUE:
00043 return HxString("REAL_VALUE");
00044 case COMPLEX_VALUE:
00045 return HxString("COMPLEX_VALUE");
00046 }
00047 return HxString("NA_VALUE");
00048 }
00049
00050 #endif