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

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

Implementing the first prototype of filter

+) Create new class filter
+) Implement class for specific algorithm
+) Implement inversing algorithm

Test
+) On Curie
+) Grid with one axis: passed

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