2 // File : SALOMEDS_AttributeComment_i.cxx
3 // Created : Fri Jul 05 14:55:07 2002
4 // Author : Yves FRICAUD
8 // Copyright : Open CASCADE 2002
12 #include "SALOMEDS_AttributeComment_i.hxx"
14 #include <TCollection_ExtendedString.hxx>
15 #include "SALOMEDS_SObject_i.hxx"
17 char* SALOMEDS_AttributeComment_i::Value()
19 TCollection_ExtendedString S = Handle(TDataStd_Comment)::DownCast(_myAttr)->Get();
20 CORBA::String_var c_s = CORBA::string_dup(TCollection_AsciiString(S).ToCString());
24 void SALOMEDS_AttributeComment_i::SetValue(const char* value)
27 CORBA::String_var Str = CORBA::string_dup(value);
28 Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));