[934] | 1 | #ifndef __XIOS_CComputeConnectivityDomain__ |
---|
| 2 | #define __XIOS_CComputeConnectivityDomain__ |
---|
| 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 CComputeConnectivityDomainGroup; |
---|
| 19 | class CComputeConnectivityDomainAttributes; |
---|
| 20 | class CComputeConnectivityDomain; |
---|
| 21 | class CDomain; |
---|
| 22 | |
---|
| 23 | ///-------------------------------------------------------------- |
---|
| 24 | |
---|
| 25 | // Declare/Define CFileAttribute |
---|
| 26 | BEGIN_DECLARE_ATTRIBUTE_MAP(CComputeConnectivityDomain) |
---|
| 27 | #include "compute_connectivity_domain_attribute.conf" |
---|
| 28 | END_DECLARE_ATTRIBUTE_MAP(CComputeConnectivityDomain) |
---|
| 29 | |
---|
| 30 | ///-------------------------------------------------------------- |
---|
| 31 | /*! |
---|
| 32 | \class CComputeConnectivityDomain |
---|
| 33 | This class describes zoom_domain in xml file. |
---|
| 34 | */ |
---|
| 35 | class CComputeConnectivityDomain |
---|
| 36 | : public CObjectTemplate<CComputeConnectivityDomain> |
---|
| 37 | , public CComputeConnectivityDomainAttributes |
---|
| 38 | , public CTransformation<CDomain> |
---|
| 39 | { |
---|
| 40 | public : |
---|
| 41 | typedef CObjectTemplate<CComputeConnectivityDomain> SuperClass; |
---|
| 42 | typedef CComputeConnectivityDomainAttributes SuperClassAttribute; |
---|
[1984] | 43 | typedef CComputeConnectivityDomain MyClass ; |
---|
| 44 | typedef CTransformation<CDomain> SuperTransform ; |
---|
[934] | 45 | |
---|
| 46 | public : |
---|
| 47 | /// Constructeurs /// |
---|
| 48 | CComputeConnectivityDomain(void); |
---|
| 49 | explicit CComputeConnectivityDomain(const StdString& id); |
---|
| 50 | |
---|
| 51 | /// Destructeur /// |
---|
| 52 | virtual ~CComputeConnectivityDomain(void); |
---|
| 53 | |
---|
| 54 | virtual void checkValid(CDomain* domain); |
---|
| 55 | |
---|
| 56 | /// Accesseurs statiques /// |
---|
| 57 | static StdString GetName(void); |
---|
| 58 | static StdString GetDefName(void); |
---|
| 59 | static ENodeType GetType(void); |
---|
[1984] | 60 | const string& getId(void) { return this->SuperClass::getId();} |
---|
| 61 | ETranformationType getTransformationType(void) { return TRANS_COMPUTE_CONNECTIVITY_DOMAIN ;} |
---|
| 62 | static CTransformation<CDomain>* getTransformation(const StdString& id) { return SuperClass::get(id);} |
---|
| 63 | virtual void inheritFrom(SuperTransform* srcTransform) { solveDescInheritance(true, this->SuperClass::get((MyClass*)srcTransform)) ;} |
---|
[934] | 64 | private: |
---|
| 65 | static bool registerTrans(); |
---|
| 66 | static CTransformation<CDomain>* create(const StdString& id, xml::CXMLNode* node); |
---|
| 67 | static bool _dummyRegistered; |
---|
[1984] | 68 | public: |
---|
| 69 | }; // class CComputeConnectivityDomain |
---|
[934] | 70 | |
---|
| 71 | DECLARE_GROUP(CComputeConnectivityDomain); |
---|
| 72 | } // namespace xios |
---|
| 73 | |
---|
| 74 | #endif // __XIOS_CComputeConnectivityDomain__ |
---|