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

Last change on this file since 934 was 934, checked in by mhnguyen, 4 years ago

Adding new transformation: Compute_connectivity_domain

Test
+) On Curie
+) Test passes

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