[1314] | 1 | #ifndef __XIOS_CDuplicateScalarToAxis__ |
---|
| 2 | #define __XIOS_CDuplicateScalarToAxis__ |
---|
| 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 | |
---|
| 15 | namespace xios { |
---|
| 16 | /// ////////////////////// Déclarations ////////////////////// /// |
---|
| 17 | class CDuplicateScalarToAxisGroup; |
---|
| 18 | class CDuplicateScalarToAxisAttributes; |
---|
| 19 | class CDuplicateScalarToAxis; |
---|
| 20 | class CAxis; |
---|
| 21 | class CScalar; |
---|
[2011] | 22 | class CGenericAlgorithmTransformation ; |
---|
| 23 | class CGrid; |
---|
[1314] | 24 | |
---|
| 25 | ///-------------------------------------------------------------- |
---|
| 26 | |
---|
| 27 | // Declare/Define CFileAttribute |
---|
| 28 | BEGIN_DECLARE_ATTRIBUTE_MAP(CDuplicateScalarToAxis) |
---|
| 29 | #include "duplicate_scalar_to_axis_attribute.conf" |
---|
| 30 | END_DECLARE_ATTRIBUTE_MAP(CDuplicateScalarToAxis) |
---|
| 31 | |
---|
| 32 | ///-------------------------------------------------------------- |
---|
| 33 | /*! |
---|
| 34 | \class CDuplicateScalarToAxis |
---|
| 35 | This class describes duplicate_scalar in xml file. |
---|
| 36 | */ |
---|
| 37 | class CDuplicateScalarToAxis |
---|
| 38 | : public CObjectTemplate<CDuplicateScalarToAxis> |
---|
| 39 | , public CDuplicateScalarToAxisAttributes |
---|
| 40 | , public CTransformation<CAxis> |
---|
| 41 | { |
---|
| 42 | public : |
---|
| 43 | typedef CObjectTemplate<CDuplicateScalarToAxis> SuperClass; |
---|
| 44 | typedef CDuplicateScalarToAxisAttributes SuperClassAttribute; |
---|
[1984] | 45 | typedef CDuplicateScalarToAxis MyClass ; |
---|
| 46 | typedef CTransformation<CAxis> SuperTransform ; |
---|
[1314] | 47 | |
---|
| 48 | public : |
---|
| 49 | /// Constructeurs /// |
---|
| 50 | CDuplicateScalarToAxis(void); |
---|
| 51 | explicit CDuplicateScalarToAxis(const StdString& id); |
---|
| 52 | |
---|
| 53 | /// Destructeur /// |
---|
| 54 | virtual ~CDuplicateScalarToAxis(void); |
---|
| 55 | |
---|
| 56 | virtual void checkValid(CAxis* axisDst, CScalar* scalarSrc); |
---|
| 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_DUPLICATE_SCALAR_TO_AXIS ;} |
---|
| 64 | static CTransformation<CAxis>* 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) ; |
---|
[1314] | 75 | private: |
---|
| 76 | static bool registerTrans(); |
---|
| 77 | static CTransformation<CAxis>* create(const StdString& id, xml::CXMLNode* node); |
---|
| 78 | static bool _dummyRegistered; |
---|
| 79 | }; // class CReduceAxisToAxis |
---|
| 80 | |
---|
| 81 | DECLARE_GROUP(CDuplicateScalarToAxis); |
---|
| 82 | } // namespace xios |
---|
| 83 | |
---|
| 84 | #endif // ___XIOS_CDuplicateScalarToAxis__ |
---|