1 | #ifndef __TYPE_UTIL_HPP__ |
---|
2 | #define __TYPE_UTIL_HPP__ |
---|
3 | |
---|
4 | #include <string> |
---|
5 | namespace xios |
---|
6 | { |
---|
7 | class CDomain; |
---|
8 | class CDomainGroup; |
---|
9 | class CField; |
---|
10 | class CFieldGroup; |
---|
11 | class CGrid; |
---|
12 | class CGridGroup; |
---|
13 | class CAxis; |
---|
14 | class CAxisGroup; |
---|
15 | class CFile; |
---|
16 | class CFileGroup; |
---|
17 | class CContext; |
---|
18 | class CContextGroup; |
---|
19 | class CCalendarWrapper; |
---|
20 | class CVariable; |
---|
21 | class CVariableGroup; |
---|
22 | class CInverseAxis; |
---|
23 | class CInverseAxisGroup; |
---|
24 | class CZoomAxis; |
---|
25 | class CZoomAxisGroup; |
---|
26 | class CInterpolateAxis; |
---|
27 | class CInterpolateAxisGroup; |
---|
28 | class CZoomDomain; |
---|
29 | class CZoomDomainGroup; |
---|
30 | class CInterpolateDomain; |
---|
31 | class CInterpolateDomainGroup; |
---|
32 | class CGenerateRectilinearDomain; |
---|
33 | class CGenerateRectilinearDomainGroup; |
---|
34 | class CScalar; |
---|
35 | class CScalarGroup; |
---|
36 | class CReduceAxisToScalar; |
---|
37 | class CReduceAxisToScalarGroup; |
---|
38 | class CReduceDomainToAxis; |
---|
39 | class CReduceDomainToAxisGroup; |
---|
40 | class CExtractDomainToAxis; |
---|
41 | class CExtractDomainToAxisGroup; |
---|
42 | class CComputeConnectivityDomain; |
---|
43 | class CComputeConnectivityDomainGroup; |
---|
44 | class CExpandDomain; |
---|
45 | class CExpandDomainGroup; |
---|
46 | class CExtractAxisToScalar; |
---|
47 | class CExtractAxisToScalarGroup; |
---|
48 | class CReduceDomainToScalar; |
---|
49 | class CReduceDomainToScalarGroup; |
---|
50 | |
---|
51 | template <typename T> inline string getStrType(void); |
---|
52 | |
---|
53 | #define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); } |
---|
54 | |
---|
55 | macro(short) |
---|
56 | macro(unsigned short) |
---|
57 | macro(int) |
---|
58 | macro(unsigned int) |
---|
59 | macro(long) |
---|
60 | macro(unsigned long) |
---|
61 | macro(float) |
---|
62 | macro(double) |
---|
63 | macro(long double) |
---|
64 | macro(char) |
---|
65 | macro(unsigned char) |
---|
66 | macro(wchar_t) |
---|
67 | macro(bool) |
---|
68 | #undef macro |
---|
69 | |
---|
70 | #define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); } |
---|
71 | macro(CDomain) |
---|
72 | macro(CDomainGroup) |
---|
73 | macro(CField) |
---|
74 | macro(CFieldGroup) |
---|
75 | macro(CGrid) |
---|
76 | macro(CGridGroup) |
---|
77 | macro(CAxis) |
---|
78 | macro(CAxisGroup) |
---|
79 | macro(CFile) |
---|
80 | macro(CFileGroup) |
---|
81 | macro(CContext) |
---|
82 | macro(CContextGroup) |
---|
83 | macro(CCalendarWrapper) |
---|
84 | macro(CVariable) |
---|
85 | macro(CVariableGroup) |
---|
86 | macro(CInverseAxis) |
---|
87 | macro(CInverseAxisGroup) |
---|
88 | macro(CZoomAxis) |
---|
89 | macro(CZoomAxisGroup) |
---|
90 | macro(CInterpolateAxis) |
---|
91 | macro(CInterpolateAxisGroup) |
---|
92 | macro(CZoomDomain) |
---|
93 | macro(CZoomDomainGroup) |
---|
94 | macro(CInterpolateDomain) |
---|
95 | macro(CInterpolateDomainGroup) |
---|
96 | macro(CGenerateRectilinearDomain) |
---|
97 | macro(CGenerateRectilinearDomainGroup) |
---|
98 | macro(CScalar) |
---|
99 | macro(CScalarGroup) |
---|
100 | macro(CReduceAxisToScalar) |
---|
101 | macro(CReduceAxisToScalarGroup) |
---|
102 | macro(CReduceDomainToAxis) |
---|
103 | macro(CReduceDomainToAxisGroup) |
---|
104 | macro(CExtractDomainToAxis) |
---|
105 | macro(CExtractDomainToAxisGroup) |
---|
106 | macro(CComputeConnectivityDomain) |
---|
107 | macro(CComputeConnectivityDomainGroup) |
---|
108 | macro(CExpandDomain) |
---|
109 | macro(CExpandDomainGroup) |
---|
110 | macro(CExtractAxisToScalar) |
---|
111 | macro(CExtractAxisToScalarGroup) |
---|
112 | macro(CReduceDomainToScalar) |
---|
113 | macro(CReduceDomainToScalarGroup) |
---|
114 | |
---|
115 | #undef macro |
---|
116 | } |
---|
117 | |
---|
118 | |
---|
119 | #endif |
---|