source: XIOS/dev/dev_ym/XIOS_COUPLING/src/node/inverse_axis.hpp @ 1984

Last change on this file since 1984 was 1984, checked in by ymipsl, 4 years ago

intermediate commit for new tranformation engine?
YM

File size: 2.3 KB
Line 
1#ifndef __XIOS_CInverseAxis__
2#define __XIOS_CInverseAxis__
3
4/// xios headers ///
5#include "xios_spl.hpp"
6#include "attribute_enum.hpp"
7#include "attribute_enum_impl.hpp"
8#include "attribute_array.hpp"
9#include "declare_attribute.hpp"
10#include "object_template.hpp"
11#include "group_factory.hpp"
12#include "declare_group.hpp"
13#include "transformation.hpp"
14
15namespace xios {
16  /// ////////////////////// Déclarations ////////////////////// ///
17  class CInverseAxisGroup;
18  class CInverseAxisAttributes;
19  class CInverseAxis;
20  class CAxis;
21  ///--------------------------------------------------------------
22
23  // Declare/Define CFileAttribute
24  BEGIN_DECLARE_ATTRIBUTE_MAP(CInverseAxis)
25#include "inverse_axis_attribute.conf"
26  END_DECLARE_ATTRIBUTE_MAP(CInverseAxis)
27
28  ///--------------------------------------------------------------
29  /*!
30    \class CInverseAxis
31    This class describes inverse_axis in xml file.
32  */
33  class CInverseAxis
34    : public CObjectTemplate<CInverseAxis>
35    , public CInverseAxisAttributes
36    , public CTransformation<CAxis>
37  {
38    public :
39      typedef CObjectTemplate<CInverseAxis> SuperClass;
40      typedef CInverseAxisAttributes SuperClassAttribute;
41      typedef CInverseAxis MyClass ;
42      typedef CTransformation<CAxis> SuperTransform ;
43
44    public :
45      /// Constructeurs ///
46      CInverseAxis(void);
47      explicit CInverseAxis(const StdString& id);
48
49      /// Destructeur ///
50      virtual ~CInverseAxis(void);
51
52      virtual void checkValid(CAxis* axisDest);
53
54      /// Accesseurs statiques ///
55      static StdString GetName(void);
56      static StdString GetDefName(void);
57      static ENodeType GetType(void);
58      const string& getId(void) { return this->SuperClass::getId();}
59      ETranformationType getTransformationType(void) { return TRANS_INVERSE_AXIS ;}
60      static CTransformation<CAxis>* getTransformation(const StdString& id) { return SuperClass::get(id);}
61      virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;}
62    private:
63      static bool registerTrans();
64      static CTransformation<CAxis>* create(const StdString& id, xml::CXMLNode* node);
65      static bool _dummyRegistered;
66
67  }; // class CInverseAxis
68
69  DECLARE_GROUP(CInverseAxis);
70} // namespace xios
71
72#endif // __XIOS_CInverseAxis__
Note: See TracBrowser for help on using the repository browser.