source: XIOS/dev/dev_ym/XIOS_COUPLING/src/type/type_util.hpp @ 1782

Last change on this file since 1782 was 1782, checked in by ymipsl, 2 years ago

coupling branch : implement new objet coupler_in and coupler_out to be properly parsed from XML file.

YM

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
File size: 3.9 KB
Line 
1#ifndef __TYPE_UTIL_HPP__
2#define __TYPE_UTIL_HPP__
3
4#include <string>
5namespace 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 CCouplerIn;
18    class CCouplerInGroup;
19    class CCouplerOut;
20    class CCouplerOutGroup;
21    class CContext;
22    class CContextGroup;
23    class CCalendarWrapper;
24    class CVariable;
25    class CVariableGroup;
26    class CInverseAxis;
27    class CInverseAxisGroup;
28    class CZoomAxis;
29    class CZoomAxisGroup;
30    class CInterpolateAxis;
31    class CInterpolateAxisGroup;
32    class CExtractAxis;
33    class CExtractAxisGroup;
34    class CZoomDomain;
35    class CZoomDomainGroup;
36    class CInterpolateDomain;
37    class CInterpolateDomainGroup;
38    class CGenerateRectilinearDomain;
39    class CGenerateRectilinearDomainGroup;
40    class CScalar;
41    class CScalarGroup;
42    class CReduceAxisToScalar;
43    class CReduceAxisToScalarGroup;
44    class CReduceDomainToAxis;
45    class CReduceDomainToAxisGroup;
46    class CReduceAxisToAxis;
47    class CReduceAxisToAxisGroup;
48    class CExtractDomainToAxis;
49    class CExtractDomainToAxisGroup;
50    class CComputeConnectivityDomain;
51    class CComputeConnectivityDomainGroup;
52    class CExpandDomain;
53    class CExpandDomainGroup;
54    class CExtractAxisToScalar;
55    class CExtractAxisToScalarGroup;
56    class CReduceDomainToScalar;
57    class CReduceDomainToScalarGroup;
58    class CTemporalSplitting;
59    class CTemporalSplittingGroup;
60    class CDuplicateScalarToAxis;
61    class CDuplicateScalarToAxisGroup;
62    class CReduceScalarToScalar;
63    class CReduceScalarToScalarGroup;
64    class CReorderDomain;
65    class CReorderDomainGroup;
66    class CExtractDomain;
67    class CExtractDomainGroup;
68     
69  template <typename T> inline string getStrType(void);
70
71#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
72
73  macro(short)
74  macro(unsigned short)
75  macro(int)
76  macro(unsigned int)
77  macro(long)
78  macro(unsigned long)
79  macro(float)
80  macro(double)
81  macro(long double)
82  macro(char)
83  macro(unsigned char)
84  macro(wchar_t)
85  macro(bool)
86#undef macro
87
88#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
89  macro(CDomain)
90  macro(CDomainGroup)
91  macro(CField)
92  macro(CFieldGroup)
93  macro(CGrid)
94  macro(CGridGroup)
95  macro(CAxis)
96  macro(CAxisGroup)
97  macro(CFile)
98  macro(CFileGroup)
99  macro(CCouplerIn)
100  macro(CCouplerInGroup)
101  macro(CCouplerOut)
102  macro(CCouplerOutGroup)
103  macro(CContext)
104  macro(CContextGroup)
105  macro(CCalendarWrapper)
106  macro(CVariable)
107  macro(CVariableGroup)
108  macro(CInverseAxis)
109  macro(CInverseAxisGroup)
110  macro(CZoomAxis)
111  macro(CZoomAxisGroup)
112  macro(CInterpolateAxis)
113  macro(CInterpolateAxisGroup)
114  macro(CExtractAxis)
115  macro(CExtractAxisGroup)
116  macro(CZoomDomain)
117  macro(CZoomDomainGroup)
118  macro(CInterpolateDomain)
119  macro(CInterpolateDomainGroup)
120  macro(CGenerateRectilinearDomain)
121  macro(CGenerateRectilinearDomainGroup)
122  macro(CScalar)
123  macro(CScalarGroup)
124  macro(CReduceAxisToScalar)
125  macro(CReduceAxisToScalarGroup)
126  macro(CReduceDomainToAxis)
127  macro(CReduceDomainToAxisGroup)
128  macro(CReduceAxisToAxis)
129  macro(CReduceAxisToAxisGroup)
130  macro(CExtractDomainToAxis)
131  macro(CExtractDomainToAxisGroup)
132  macro(CComputeConnectivityDomain)
133  macro(CComputeConnectivityDomainGroup)
134  macro(CExpandDomain)
135  macro(CExpandDomainGroup)
136  macro(CExtractAxisToScalar)
137  macro(CExtractAxisToScalarGroup)
138  macro(CReduceDomainToScalar)
139  macro(CReduceDomainToScalarGroup)
140  macro(CTemporalSplitting)
141  macro(CTemporalSplittingGroup)
142  macro(CDuplicateScalarToAxis)
143  macro(CDuplicateScalarToAxisGroup)
144  macro(CReduceScalarToScalar)
145  macro(CReduceScalarToScalarGroup)
146  macro(CReorderDomain)
147  macro(CReorderDomainGroup)
148  macro(CExtractDomain)
149  macro(CExtractDomainGroup)
150 
151#undef macro
152}
153
154
155#endif
Note: See TracBrowser for help on using the repository browser.