source: XIOS/dev/branch_openmp/src/node/extract_domain.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.9 KB
Line 
1#ifndef __XIOS_CExtractDomain__
2#define __XIOS_CExtractDomain__
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 "domain.hpp"
15
16namespace xios {
17  /// ////////////////////// Déclarations ////////////////////// ///
18  class CExtractDomainGroup;
19  class CExtractDomainAttributes;
20  class CExtractDomain;
21  class CDomain;
22
23  ///--------------------------------------------------------------
24
25  // Declare/Define CFileAttribute
26  BEGIN_DECLARE_ATTRIBUTE_MAP(CExtractDomain)
27#include "extract_domain_attribute.conf"
28  END_DECLARE_ATTRIBUTE_MAP(CExtractDomain)
29
30  ///--------------------------------------------------------------
31  /*!
32    \class CExtractDomain
33    This class describes extract_domain in xml file.
34  */
35  class CExtractDomain
36    : public CObjectTemplate<CExtractDomain>
37    , public CExtractDomainAttributes
38    , public CTransformation<CDomain>
39  {
40    public :
41      typedef CObjectTemplate<CExtractDomain> SuperClass;
42      typedef CExtractDomainAttributes SuperClassAttribute;
43
44    public :
45      /// Constructeurs ///
46      CExtractDomain(void);
47      explicit CExtractDomain(const StdString& id);
48
49      /// Destructeur ///
50      virtual ~CExtractDomain(void);
51
52      virtual void checkValid(CDomain* 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<CDomain>* create(const StdString& id, xml::CXMLNode* node);
61      static bool _dummyRegistered;
62  }; // class CExtractDomain
63
64  DECLARE_GROUP(CExtractDomain);
65} // namespace xios
66
67#endif // __XIOS_CExtractDomain__
Note: See TracBrowser for help on using the repository browser.