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

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

Implementing interpolation (polynomial) and correct some bugs

+) Implement interpolation (polynomial)
+) Correct some minor bugs relating to memory allocation
+) Clear some redundant codes

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