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

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

Add 2 new spatial transformations :

  • reduce_scalar_to_scalar : global reduction between scalar
  • duplicate_scalar_to_axis : a scalar value is duplicated on each level of the 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.4 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 CReduceAxisToAxis;
41    class CReduceAxisToAxisGroup;
42    class CExtractDomainToAxis;
43    class CExtractDomainToAxisGroup;
44    class CComputeConnectivityDomain;
45    class CComputeConnectivityDomainGroup;
46    class CExpandDomain;
47    class CExpandDomainGroup;
48    class CExtractAxisToScalar;
49    class CExtractAxisToScalarGroup;
50    class CReduceDomainToScalar;
51    class CReduceDomainToScalarGroup;
52    class CTemporalSplitting;
53    class CTemporalSplittingGroup;
54    class CDuplicateScalarToAxis;
55    class CDuplicateScalarToAxisGroup;
56    class CReduceScalarToScalar;
57    class CReduceScalarToScalarGroup;
58 
59  template <typename T> inline string getStrType(void);
60
61#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
62
63  macro(short)
64  macro(unsigned short)
65  macro(int)
66  macro(unsigned int)
67  macro(long)
68  macro(unsigned long)
69  macro(float)
70  macro(double)
71  macro(long double)
72  macro(char)
73  macro(unsigned char)
74  macro(wchar_t)
75  macro(bool)
76#undef macro
77
78#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
79  macro(CDomain)
80  macro(CDomainGroup)
81  macro(CField)
82  macro(CFieldGroup)
83  macro(CGrid)
84  macro(CGridGroup)
85  macro(CAxis)
86  macro(CAxisGroup)
87  macro(CFile)
88  macro(CFileGroup)
89  macro(CContext)
90  macro(CContextGroup)
91  macro(CCalendarWrapper)
92  macro(CVariable)
93  macro(CVariableGroup)
94  macro(CInverseAxis)
95  macro(CInverseAxisGroup)
96  macro(CZoomAxis)
97  macro(CZoomAxisGroup)
98  macro(CInterpolateAxis)
99  macro(CInterpolateAxisGroup)
100  macro(CZoomDomain)
101  macro(CZoomDomainGroup)
102  macro(CInterpolateDomain)
103  macro(CInterpolateDomainGroup)
104  macro(CGenerateRectilinearDomain)
105  macro(CGenerateRectilinearDomainGroup)
106  macro(CScalar)
107  macro(CScalarGroup)
108  macro(CReduceAxisToScalar)
109  macro(CReduceAxisToScalarGroup)
110  macro(CReduceDomainToAxis)
111  macro(CReduceDomainToAxisGroup)
112  macro(CReduceAxisToAxis)
113  macro(CReduceAxisToAxisGroup)
114  macro(CExtractDomainToAxis)
115  macro(CExtractDomainToAxisGroup)
116  macro(CComputeConnectivityDomain)
117  macro(CComputeConnectivityDomainGroup)
118  macro(CExpandDomain)
119  macro(CExpandDomainGroup)
120  macro(CExtractAxisToScalar)
121  macro(CExtractAxisToScalarGroup)
122  macro(CReduceDomainToScalar)
123  macro(CReduceDomainToScalarGroup)
124  macro(CTemporalSplitting)
125  macro(CTemporalSplittingGroup)
126  macro(CDuplicateScalarToAxis)
127  macro(CDuplicateScalarToAxisGroup)
128  macro(CReduceScalarToScalar)
129  macro(CReduceScalarToScalarGroup)
130 
131#undef macro
132}
133
134
135#endif
Note: See TracBrowser for help on using the repository browser.