[935] | 1 | #ifndef __XIOS_CExpandDomain__ |
---|
| 2 | #define __XIOS_CExpandDomain__ |
---|
| 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 | |
---|
| 16 | namespace xios { |
---|
| 17 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 18 | class CExpandDomainGroup; |
---|
| 19 | class CExpandDomainAttributes; |
---|
| 20 | class CExpandDomain; |
---|
| 21 | class CDomain; |
---|
[2011] | 22 | class CGenericAlgorithmTransformation ; |
---|
| 23 | class CGrid; |
---|
[935] | 24 | |
---|
| 25 | ///-------------------------------------------------------------- |
---|
| 26 | |
---|
| 27 | // Declare/Define CFileAttribute |
---|
| 28 | BEGIN_DECLARE_ATTRIBUTE_MAP(CExpandDomain) |
---|
| 29 | #include "expand_domain_attribute.conf" |
---|
| 30 | END_DECLARE_ATTRIBUTE_MAP(CExpandDomain) |
---|
| 31 | |
---|
| 32 | ///-------------------------------------------------------------- |
---|
| 33 | /*! |
---|
| 34 | \class CExpandDomain |
---|
| 35 | This class describes expand_domain in xml file. |
---|
| 36 | */ |
---|
| 37 | class CExpandDomain |
---|
| 38 | : public CObjectTemplate<CExpandDomain> |
---|
| 39 | , public CExpandDomainAttributes |
---|
| 40 | , public CTransformation<CDomain> |
---|
| 41 | { |
---|
| 42 | public : |
---|
| 43 | typedef CObjectTemplate<CExpandDomain> SuperClass; |
---|
| 44 | typedef CExpandDomainAttributes SuperClassAttribute; |
---|
[1984] | 45 | typedef CExpandDomain MyClass ; |
---|
| 46 | typedef CTransformation<CDomain> SuperTransform ; |
---|
[935] | 47 | |
---|
| 48 | public : |
---|
| 49 | /// Constructeurs /// |
---|
| 50 | CExpandDomain(void); |
---|
| 51 | explicit CExpandDomain(const StdString& id); |
---|
| 52 | |
---|
| 53 | /// Destructeur /// |
---|
| 54 | virtual ~CExpandDomain(void); |
---|
| 55 | |
---|
| 56 | virtual void checkValid(CDomain* domain); |
---|
| 57 | |
---|
| 58 | /// Accesseurs statiques /// |
---|
| 59 | static StdString GetName(void); |
---|
| 60 | static StdString GetDefName(void); |
---|
| 61 | static ENodeType GetType(void); |
---|
[1984] | 62 | const string& getId(void) { return this->SuperClass::getId();} |
---|
| 63 | ETranformationType getTransformationType(void) { return TRANS_EXPAND_DOMAIN ;} |
---|
| 64 | static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} |
---|
| 65 | virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} |
---|
[2270] | 66 | virtual shared_ptr<CGenericAlgorithmTransformation> createAlgorithm(bool isSource, |
---|
[2011] | 67 | CGrid* gridDst, CGrid* gridSrc, |
---|
| 68 | int elementPositionInGrid, |
---|
| 69 | std::map<int, int>& elementPositionInGridSrc2ScalarPosition, |
---|
| 70 | std::map<int, int>& elementPositionInGridSrc2AxisPosition, |
---|
| 71 | std::map<int, int>& elementPositionInGridSrc2DomainPosition, |
---|
| 72 | std::map<int, int>& elementPositionInGridDst2ScalarPosition, |
---|
| 73 | std::map<int, int>& elementPositionInGridDst2AxisPosition, |
---|
| 74 | std::map<int, int>& elementPositionInGridDst2DomainPosition) ; |
---|
[935] | 75 | private: |
---|
| 76 | static bool registerTrans(); |
---|
| 77 | static CTransformation<CDomain>* create(const StdString& id, xml::CXMLNode* node); |
---|
| 78 | static bool _dummyRegistered; |
---|
| 79 | }; // class CExpandDomain |
---|
| 80 | |
---|
| 81 | DECLARE_GROUP(CExpandDomain); |
---|
| 82 | } // namespace xios |
---|
| 83 | |
---|
| 84 | #endif // __XIOS_CExpandDomain__ |
---|