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

Last change on this file since 895 was 895, checked in by mhnguyen, 8 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
RevLine 
[313]1#ifndef __TYPE_UTIL_HPP__
2#define __TYPE_UTIL_HPP__
3
4#include <string>
[335]5namespace xios
[313]6{
[549]7    class CDomain;
[313]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;
[352]18    class CContextGroup;
[549]19    class CCalendarWrapper;
20    class CVariable;
21    class CVariableGroup;
[621]22    class CInverseAxis;
23    class CInverseAxisGroup;
24    class CZoomAxis;
25    class CZoomAxisGroup;
[630]26    class CInterpolateAxis;
27    class CInterpolateAxisGroup;
[631]28    class CZoomDomain;
29    class CZoomDomainGroup;
[689]30    class CInterpolateDomain;
31    class CInterpolateDomainGroup;
[687]32    class CGenerateRectilinearDomain;
33    class CGenerateRectilinearDomainGroup;
[887]34    class CScalar;
35    class CScalarGroup;
[888]36    class CReduceAxisToScalar;
37    class CReduceAxisToScalarGroup;
[895]38    class CReduceDomainToAxis;
39    class CReduceDomainToAxisGroup;
40    class CExtractDomainToAxis;
41    class CExtractDomainToAxisGroup;
[313]42
[549]43  template <typename T> inline string getStrType(void);
44
45#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
46
[313]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)
[327]60#undef macro
[549]61
62#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
[313]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)
[352]74  macro(CContextGroup)
[549]75  macro(CCalendarWrapper)
[352]76  macro(CVariable)
77  macro(CVariableGroup)
[621]78  macro(CInverseAxis)
79  macro(CInverseAxisGroup)
80  macro(CZoomAxis)
81  macro(CZoomAxisGroup)
[630]82  macro(CInterpolateAxis)
83  macro(CInterpolateAxisGroup)
[631]84  macro(CZoomDomain)
85  macro(CZoomDomainGroup)
[689]86  macro(CInterpolateDomain)
87  macro(CInterpolateDomainGroup)
[687]88  macro(CGenerateRectilinearDomain)
89  macro(CGenerateRectilinearDomainGroup)
[887]90  macro(CScalar)
91  macro(CScalarGroup)
[888]92  macro(CReduceAxisToScalar)
93  macro(CReduceAxisToScalarGroup)
[895]94  macro(CReduceDomainToAxis)
95  macro(CReduceDomainToAxisGroup)
96  macro(CExtractDomainToAxis)
97  macro(CExtractDomainToAxisGroup)
[313]98#undef macro
99}
100
101
102#endif
Note: See TracBrowser for help on using the repository browser.