source: XIOS/trunk/src/node/temporal_splitting.hpp @ 2314

Last change on this file since 2314 was 1275, checked in by ymipsl, 7 years ago

implement diurnal cycle transformation taken as a grid tranformation : scalar -> axis

YM

File size: 2.0 KB
Line 
1#ifndef __XIOS_CTemporalSplitting__
2#define __XIOS_CTemporalSplitting__
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 CTemporalSplittingGroup;
18  class CTemporalSplittingAttributes;
19  class CTemporalSplitting;
20  class CAxis;
21  class CScalar;
22  ///--------------------------------------------------------------
23
24  // Declare/Define CFileAttribute
25  BEGIN_DECLARE_ATTRIBUTE_MAP(CTemporalSplitting)
26#include "temporal_splitting.conf"
27  END_DECLARE_ATTRIBUTE_MAP(CTemporalSplitting)
28
29  ///--------------------------------------------------------------
30  /*!
31    \class CExtractDomainToAxis
32    This class describes reduce_domain in xml file.
33  */
34  class CTemporalSplitting
35    : public CObjectTemplate<CTemporalSplitting>
36    , public CTemporalSplittingAttributes
37    , public CTransformation<CAxis>
38  {
39    public :
40      typedef CObjectTemplate<CTemporalSplitting> SuperClass;
41      typedef CTemporalSplittingAttributes SuperClassAttribute;
42
43    public :
44      /// Constructeurs ///
45      CTemporalSplitting(void);
46      explicit CTemporalSplitting(const StdString& id);
47
48      /// Destructeur ///
49      virtual ~CTemporalSplitting(void);
50
51      virtual void checkValid(CAxis* axisDst, CScalar* scalarSrc);
52
53      /// Accesseurs statiques ///
54      static StdString GetName(void);
55      static StdString GetDefName(void);
56      static ENodeType GetType(void);
57    private:
58      static bool registerTrans();
59      static CTransformation<CAxis>* create(const StdString& id, xml::CXMLNode* node);
60      static bool _dummyRegistered;
61  }; // class CTemporalSplitting
62
63  DECLARE_GROUP(CTemporalSplitting);
64} // namespace xios
65
66#endif // __XIOS_CTemporalSplitting__
Note: See TracBrowser for help on using the repository browser.