2 // File : SALOMEDS_AttributeOpened_i.cxx
3 // Created : Fri Jul 05 14:25:13 2002
4 // Author : Yves FRICAUD
8 // Copyright : Open CASCADE 2002
12 #include "SALOMEDS_AttributeOpened_i.hxx"
13 #include "SALOMEDS_SObject_i.hxx"
15 CORBA::Boolean SALOMEDS_AttributeOpened_i::IsOpened() {
16 return (Handle(SALOMEDS_OpenedAttribute)::DownCast(_myAttr)->Get() == 1);
19 void SALOMEDS_AttributeOpened_i::SetOpened(CORBA::Boolean value) {
20 Standard_Integer val = 0;
21 if (value != 0) val = 1;
22 Handle(TDataStd_Integer)::DownCast(_myAttr)->Set(val);