Salome HOME
Moved some functionality to VTKViewer_Utilities.h
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeComment_i.hxx
index 9ebeb45fd0e78a88760af204eae8d9976a2144e3..762a96fe99f3c4b911838c69126155f419f30cb8 100644 (file)
 #ifndef SALOMEDS_AttributeComment_i_HeaderFile
 #define SALOMEDS_AttributeComment_i_HeaderFile
 
-// IDL headers
 #include <TDataStd_Comment.hxx>
+
+#include "SALOMEDS_GenericAttribute_i.hxx"
+
+// IDL headers
 #include <SALOMEconfig.h>
 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
-#include "SALOMEDS_GenericAttribute_i.hxx"
 
-class SALOMEDS_AttributeComment_i: public virtual POA_SALOMEDS::AttributeComment,
-                                  public virtual SALOMEDS_GenericAttribute_i {
-public:
-  
-  SALOMEDS_AttributeComment_i(const Handle(TDataStd_Comment)& theCommentAttr, CORBA::ORB_ptr orb) 
-  {
-    _myOrb = CORBA::ORB::_duplicate(orb);
-    _myAttr = theCommentAttr;
-  }
-  ~SALOMEDS_AttributeComment_i() {};
+DEFINE_DERIVED_ATTR(AttributeComment,TDataStd_Comment,true);
 
+class SALOMEDS_AttributeComment_i: 
+  public virtual POA_SALOMEDS::AttributeComment,
+  public virtual SALOMEDS_TAttributeComment_i
+{
+  DEFINE_DERIVED_ATTR_METH_DEFAULT(AttributeComment,TDataStd_Comment);
+public:
   char* Value();
-  void SetValue(const char* value);
+  void SetValue(const char* theValue);
   
+  char* Store();
+  void Restore(const char*);
 };
 
 
-
 #endif