2 // File : SALOMEDS_AttributePixMap_i.cxx
3 // Created : Fri Jul 05 14:38:10 2002
4 // Author : Yves FRICAUD
8 // Copyright : Open CASCADE 2002
12 #include "SALOMEDS_AttributePixMap_i.hxx"
13 #include "SALOMEDS_SObject_i.hxx"
14 #include <TCollection_AsciiString.hxx>
16 CORBA::Boolean SALOMEDS_AttributePixMap_i::HasPixMap() {
17 TCollection_ExtendedString S = Handle(SALOMEDS_PixMapAttribute)::DownCast(_myAttr)->Get();
18 if (strcmp(TCollection_AsciiString(S).ToCString(), "None") == 0) return Standard_False;
22 char* SALOMEDS_AttributePixMap_i::GetPixMap() {
23 CORBA::String_var S = CORBA::string_dup(TCollection_AsciiString(Handle(SALOMEDS_PixMapAttribute)::DownCast(_myAttr)->Get()).ToCString());
27 void SALOMEDS_AttributePixMap_i::SetPixMap(const char* value) {
29 CORBA::String_var Str = CORBA::string_dup(value);
30 Handle(TDataStd_Comment)::DownCast(_myAttr)->Set(TCollection_ExtendedString(Str));