source: XIOS/dev/XIOS_DEV_CMIP6/src/type/type_util.hpp @ 1275

Last change on this file since 1275 was 1275, checked in by ymipsl, 3 years ago

implement diurnal cycle transformation taken as a grid tranformation : scalar -> axis

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