Salome HOME
Fix on Bug PAL7838
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_AttributeOpened_i.hxx
index a5b08df3e57a99a20c2a639cb61daf9e7dbd64e9..0ad905ca6ff93cf6559349ab3511c09ba4bff161 100644 (file)
 #define SALOMEDS_AttributeOpened_i_HeaderFile
 
 // IDL headers
-
-#include "SALOMEDS_OpenedAttribute.hxx"
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
+
+#include "SALOMEDS_OpenedAttribute.hxx"
 #include "SALOMEDS_GenericAttribute_i.hxx"
 
-class SALOMEDS_AttributeOpened_i: public virtual POA_SALOMEDS::AttributeOpened,
-  public virtual SALOMEDS_GenericAttribute_i {
+DEFINE_DERIVED_ATTR(AttributeOpened,SALOMEDS_OpenedAttribute,false);
+
+class SALOMEDS_AttributeOpened_i: 
+  public virtual POA_SALOMEDS::AttributeOpened,
+  public virtual SALOMEDS_TAttributeOpened_i 
+{
+  DEFINE_DERIVED_ATTR_METH_DEFAULT(AttributeOpened,SALOMEDS_OpenedAttribute);
 public:
-  
-  SALOMEDS_AttributeOpened_i(const Handle(SALOMEDS_OpenedAttribute)& theIntAttr, CORBA::ORB_ptr orb) 
-  {
-    _myOrb = CORBA::ORB::_duplicate(orb);
-    _myAttr = theIntAttr; 
-  };  
-  ~SALOMEDS_AttributeOpened_i() {};
   CORBA::Boolean IsOpened();
   void SetOpened(CORBA::Boolean value);
+
+  char* Store();
+  void Restore(const char*);
+
 };