source: XIOS/dev/branch_openmp/src/node/reduce_domain_to_scalar.hpp @ 1328

Last change on this file since 1328 was 1328, checked in by yushan, 6 years ago

dev_omp

File size: 2.0 KB
Line 
1#ifndef __XIOS_CReduceDomainToScalar__
2#define __XIOS_CReduceDomainToScalar__
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 CReduceDomainToScalarGroup;
18  class CReduceDomainToScalarAttributes;
19  class CReduceDomainToScalar;
20  class CDomain;
21  class CScalar;
22
23  ///--------------------------------------------------------------
24
25  // Declare/Define CFileAttribute
26  BEGIN_DECLARE_ATTRIBUTE_MAP(CReduceDomainToScalar)
27#include "reduce_domain_to_scalar_attribute.conf"
28  END_DECLARE_ATTRIBUTE_MAP(CReduceDomainToScalar)
29
30  ///--------------------------------------------------------------
31  /*!
32    \class CReduceDomainToScalar
33    This class describes reduce_domain in xml file.
34  */
35  class CReduceDomainToScalar
36    : public CObjectTemplate<CReduceDomainToScalar>
37    , public CReduceDomainToScalarAttributes
38    , public CTransformation<CScalar>
39  {
40    public :
41      typedef CObjectTemplate<CReduceDomainToScalar> SuperClass;
42      typedef CReduceDomainToScalarAttributes SuperClassAttribute;
43
44    public :
45      /// Constructeurs ///
46      CReduceDomainToScalar(void);
47      explicit CReduceDomainToScalar(const StdString& id);
48
49      /// Destructeur ///
50      virtual ~CReduceDomainToScalar(void);
51
52      virtual void checkValid(CScalar* scalarDst, CDomain* domainSrc);
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<CScalar>* create(const StdString& id, xml::CXMLNode* node);
61      static bool _dummyRegistered;
62  }; // class CReduceDomainToScalar
63
64  DECLARE_GROUP(CReduceDomainToScalar);
65} // namespace xios
66
67#endif // __XIOS_CReduceDomainToScalar__
Note: See TracBrowser for help on using the repository browser.