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 | |
---|
49 | template <typename T> inline string getStrType(void); |
---|
50 | |
---|
51 | #define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); } |
---|
52 | |
---|
53 | macro(short) |
---|
54 | macro(unsigned short) |
---|
55 | macro(int) |
---|
56 | macro(unsigned int) |
---|
57 | macro(long) |
---|
58 | macro(unsigned long) |
---|
59 | macro(float) |
---|
60 | macro(double) |
---|
61 | macro(long double) |
---|
62 | macro(char) |
---|
63 | macro(unsigned char) |
---|
64 | macro(wchar_t) |
---|
65 | macro(bool) |
---|
66 | #undef macro |
---|
67 | |
---|
68 | #define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); } |
---|
69 | macro(CDomain) |
---|
70 | macro(CDomainGroup) |
---|
71 | macro(CField) |
---|
72 | macro(CFieldGroup) |
---|
73 | macro(CGrid) |
---|
74 | macro(CGridGroup) |
---|
75 | macro(CAxis) |
---|
76 | macro(CAxisGroup) |
---|
77 | macro(CFile) |
---|
78 | macro(CFileGroup) |
---|
79 | macro(CContext) |
---|
80 | macro(CContextGroup) |
---|
81 | macro(CCalendarWrapper) |
---|
82 | macro(CVariable) |
---|
83 | macro(CVariableGroup) |
---|
84 | macro(CInverseAxis) |
---|
85 | macro(CInverseAxisGroup) |
---|
86 | macro(CZoomAxis) |
---|
87 | macro(CZoomAxisGroup) |
---|
88 | macro(CInterpolateAxis) |
---|
89 | macro(CInterpolateAxisGroup) |
---|
90 | macro(CZoomDomain) |
---|
91 | macro(CZoomDomainGroup) |
---|
92 | macro(CInterpolateDomain) |
---|
93 | macro(CInterpolateDomainGroup) |
---|
94 | macro(CGenerateRectilinearDomain) |
---|
95 | macro(CGenerateRectilinearDomainGroup) |
---|
96 | macro(CScalar) |
---|
97 | macro(CScalarGroup) |
---|
98 | macro(CReduceAxisToScalar) |
---|
99 | macro(CReduceAxisToScalarGroup) |
---|
100 | macro(CReduceDomainToAxis) |
---|
101 | macro(CReduceDomainToAxisGroup) |
---|
102 | macro(CExtractDomainToAxis) |
---|
103 | macro(CExtractDomainToAxisGroup) |
---|
104 | macro(CComputeConnectivityDomain) |
---|
105 | macro(CComputeConnectivityDomainGroup) |
---|
106 | macro(CExpandDomain) |
---|
107 | macro(CExpandDomainGroup) |
---|
108 | macro(CExtractAxisToScalar) |
---|
109 | macro(CExtractAxisToScalarGroup) |
---|
110 | |
---|
111 | #undef macro |
---|
112 | } |
---|
113 | |
---|
114 | |
---|
115 | #endif |
---|