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