source: XIOS/trunk/src/type/type_util.hpp @ 895

Last change on this file since 895 was 895, checked in by mhnguyen, 5 years ago

Adding a new transformation: Reduce a domain to an axis

Test
+) On Curie
+) Tests pass and are correct

  • 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: 2.3 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
43  template <typename T> inline string getStrType(void);
44
45#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
46
47  macro(short)
48  macro(unsigned short)
49  macro(int)
50  macro(unsigned int)
51  macro(long)
52  macro(unsigned long)
53  macro(float)
54  macro(double)
55  macro(long double)
56  macro(char)
57  macro(unsigned char)
58  macro(wchar_t)
59  macro(bool)
60#undef macro
61
62#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
63  macro(CDomain)
64  macro(CDomainGroup)
65  macro(CField)
66  macro(CFieldGroup)
67  macro(CGrid)
68  macro(CGridGroup)
69  macro(CAxis)
70  macro(CAxisGroup)
71  macro(CFile)
72  macro(CFileGroup)
73  macro(CContext)
74  macro(CContextGroup)
75  macro(CCalendarWrapper)
76  macro(CVariable)
77  macro(CVariableGroup)
78  macro(CInverseAxis)
79  macro(CInverseAxisGroup)
80  macro(CZoomAxis)
81  macro(CZoomAxisGroup)
82  macro(CInterpolateAxis)
83  macro(CInterpolateAxisGroup)
84  macro(CZoomDomain)
85  macro(CZoomDomainGroup)
86  macro(CInterpolateDomain)
87  macro(CInterpolateDomainGroup)
88  macro(CGenerateRectilinearDomain)
89  macro(CGenerateRectilinearDomainGroup)
90  macro(CScalar)
91  macro(CScalarGroup)
92  macro(CReduceAxisToScalar)
93  macro(CReduceAxisToScalarGroup)
94  macro(CReduceDomainToAxis)
95  macro(CReduceDomainToAxisGroup)
96  macro(CExtractDomainToAxis)
97  macro(CExtractDomainToAxisGroup)
98#undef macro
99}
100
101
102#endif
Note: See TracBrowser for help on using the repository browser.