source: XIOS/dev/branch_openmp/src/node/extract_axis.hpp @ 1643

Last change on this file since 1643 was 1643, checked in by yushan, 3 years ago

dev on ADA. add new files

File size: 1.8 KB
Line 
1#ifndef __XIOS_CExtractAxis__
2#define __XIOS_CExtractAxis__
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#include "axis.hpp"
15
16namespace xios {
17  /// ////////////////////// Déclarations ////////////////////// ///
18  class CExtractAxisGroup;
19  class CExtractAxisAttributes;
20  class CExtractAxis;
21  class CAxis;
22
23  ///--------------------------------------------------------------
24
25  // Declare/Define CFileAttribute
26  BEGIN_DECLARE_ATTRIBUTE_MAP(CExtractAxis)
27#include "extract_axis_attribute.conf"
28  END_DECLARE_ATTRIBUTE_MAP(CExtractAxis)
29
30  ///--------------------------------------------------------------
31  /*!
32    \class CExtractAxis
33    This class describes extract_axis in xml file.
34  */
35  class CExtractAxis
36    : public CObjectTemplate<CExtractAxis>
37    , public CExtractAxisAttributes
38    , public CTransformation<CAxis>
39  {
40    public :
41      typedef CObjectTemplate<CExtractAxis> SuperClass;
42      typedef CExtractAxisAttributes SuperClassAttribute;
43
44    public :
45      /// Constructeurs ///
46      CExtractAxis(void);
47      explicit CExtractAxis(const StdString& id);
48
49      /// Destructeur ///
50      virtual ~CExtractAxis(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    private:
59      static bool registerTrans();
60      static CTransformation<CAxis>* create(const StdString& id, xml::CXMLNode* node);
61      static bool _dummyRegistered;
62  }; // class CExtractAxis
63
64  DECLARE_GROUP(CExtractAxis);
65} // namespace xios
66
67#endif // __XIOS_CExtractAxis__
Note: See TracBrowser for help on using the repository browser.