Salome HOME
Moved some functionality to VTKViewer_Utilities.h
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeComment_i.cxx
index f967482d801243435675aa8878be2fc7ba18c3b0..d84186658944e0d699ac14a1d514aeddd029982e 100644 (file)
 //  Module : SALOME
 //  $Header$
 
-using namespace std;
+#include <TCollection_ExtendedString.hxx>
+#include <TCollection_AsciiString.hxx>
+
 #include "SALOMEDS_AttributeComment_i.hxx"
 
-#include <TCollection_ExtendedString.hxx>
-#include "SALOMEDS_SObject_i.hxx"
+using namespace std;
 
 char* SALOMEDS_AttributeComment_i::Value()
 {
@@ -45,3 +46,11 @@ void SALOMEDS_AttributeComment_i::SetValue(const char* value)
   CORBA::String_var Str = CORBA::string_dup(value);
   Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
 }
+
+char* SALOMEDS_AttributeComment_i::Store() {
+  return Value();
+}
+
+void SALOMEDS_AttributeComment_i::Restore(const char* value) {
+  SetValue(value);
+}