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