source: XIOS/trunk/src/node/transformation.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

File size: 820 bytes
Line 
1#ifndef __XMLIO_CTransformation__
2#define __XMLIO_CTransformation__
3
4#include "xmlioserver_spl.hpp"
5#include "transformation_enum.hpp"
6
7namespace xios {
8
9  ///--------------------------------------------------------------
10  /*!
11    \class CTransformation
12    This class describes inverse_axis in xml file.
13  */
14  template<typename T>
15  class CTransformation
16  {
17  public:
18    typedef typename boost::unordered_map<ETranformationType, CTransformation<T>*, boost::hash<int> > TransformationMapTypes;
19    typedef TransformationMapTypes TransMapTypes;
20
21    public :
22      /// Constructeurs ///
23      CTransformation(void) {}
24      virtual void checkValid(T* dest) = 0;
25
26      /// Destructeur ///
27      virtual ~CTransformation(void) {}
28  }; // class CTransformation
29
30} // namespace xios
31
32#endif // __XMLIO_CTransformation__
Note: See TracBrowser for help on using the repository browser.