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

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

Add new domain filter : reorder_domain
Reoder the data along the global domain but works only for rectilinear domain

  • invert_lat : invert the latitute axis
  • shift_lon_fraction : shift the longitude axis of a fration of global size
  • lon_min/lon_max : fixe the range of longitude value (ex : -180:180 or 0:360)

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