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

Last change on this file since 621 was 621, checked in by mhnguyen, 6 years ago

Implementing generic transformation algorithm (local commit)

+) Change a little bit to make sure everything work in order

Test
+) test_new_features passe with inverse

  • 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: 1.4 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
27  template <typename T> inline string getStrType(void);
28
29#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
30
31  macro(short)
32  macro(unsigned short)
33  macro(int)
34  macro(unsigned int)
35  macro(long)
36  macro(unsigned long)
37  macro(float)
38  macro(double)
39  macro(long double)
40  macro(char)
41  macro(unsigned char)
42  macro(wchar_t)
43  macro(bool)
44#undef macro
45
46#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
47  macro(CDomain)
48  macro(CDomainGroup)
49  macro(CField)
50  macro(CFieldGroup)
51  macro(CGrid)
52  macro(CGridGroup)
53  macro(CAxis)
54  macro(CAxisGroup)
55  macro(CFile)
56  macro(CFileGroup)
57  macro(CContext)
58  macro(CContextGroup)
59  macro(CCalendarWrapper)
60  macro(CVariable)
61  macro(CVariableGroup)
62  macro(CInverseAxis)
63  macro(CInverseAxisGroup)
64  macro(CZoomAxis)
65  macro(CZoomAxisGroup)
66#undef macro
67}
68
69
70#endif
Note: See TracBrowser for help on using the repository browser.