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

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

Implementing zooming on a domain

+) Add algorithm to do zooming on a domain
+) Remove some redundant codes

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