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

Last change on this file since 960 was 960, checked in by mhnguyen, 8 years ago

New transformation: Extract a point on axis to a scalar

+) Add new node and new transformation algorithm

Test
+) On Curie
+) Work

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