2 // File : SALOMEDS_AttributeIOR_i.cxx
3 // Created : Fri Jul 05 15:17:19 2002
4 // Author : Yves FRICAUD
8 // Copyright : Open CASCADE 2002
12 #include "SALOMEDS_AttributeIOR_i.hxx"
15 #include <TCollection_ExtendedString.hxx>
16 #include "SALOMEDS_SObject_i.hxx"
17 #include "SALOMEDS_Study_i.hxx"
19 char* SALOMEDS_AttributeIOR_i::Value()
21 TCollection_ExtendedString S = Handle(SALOMEDS_IORAttribute)::DownCast(_myAttr)->Get();
22 CORBA::String_var c_s = CORBA::string_dup(TCollection_AsciiString(S).ToCString());
26 void SALOMEDS_AttributeIOR_i::SetValue(const char* value)
29 CORBA::String_var Str = CORBA::string_dup(value);
30 Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));
31 SALOMEDS_Study_i::IORUpdated(Handle(SALOMEDS_IORAttribute)::DownCast(_myAttr),_myOrb);