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

Last change on this file since 660 was 658, checked in by mhnguyen, 9 years ago

Some minor corrections after merge

Test
+) On Curie
+) All tests: test_client, test_complete, test_unstruct_complete pass

  • 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.7 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;
[658]30    class CInterpolateFromFileDomain;
[657]31    class CInterpolateFromFileDomainGroup;
[313]32
[549]33  template <typename T> inline string getStrType(void);
34
35#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
36
[313]37  macro(short)
38  macro(unsigned short)
39  macro(int)
40  macro(unsigned int)
41  macro(long)
42  macro(unsigned long)
43  macro(float)
44  macro(double)
45  macro(long double)
46  macro(char)
47  macro(unsigned char)
48  macro(wchar_t)
49  macro(bool)
[327]50#undef macro
[549]51
52#define macro(T) template <> inline string getStrType<T>(void) { return std::string(#T); }
[313]53  macro(CDomain)
54  macro(CDomainGroup)
55  macro(CField)
56  macro(CFieldGroup)
57  macro(CGrid)
58  macro(CGridGroup)
59  macro(CAxis)
60  macro(CAxisGroup)
61  macro(CFile)
62  macro(CFileGroup)
63  macro(CContext)
[352]64  macro(CContextGroup)
[549]65  macro(CCalendarWrapper)
[352]66  macro(CVariable)
67  macro(CVariableGroup)
[621]68  macro(CInverseAxis)
69  macro(CInverseAxisGroup)
70  macro(CZoomAxis)
71  macro(CZoomAxisGroup)
[630]72  macro(CInterpolateAxis)
73  macro(CInterpolateAxisGroup)
[631]74  macro(CZoomDomain)
75  macro(CZoomDomainGroup)
[657]76  macro(CInterpolateFromFileDomain)
77  macro(CInterpolateFromFileDomainGroup)
[313]78#undef macro
79}
80
81
82#endif
Note: See TracBrowser for help on using the repository browser.