1 // File : SALOMEDS_AttributeSelectable.cxx
2 // Author : Sergey RUIN
5 #include "SALOMEDS_AttributeSelectable.hxx"
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
10 SALOMEDS_AttributeSelectable::SALOMEDS_AttributeSelectable(const Handle(SALOMEDSImpl_AttributeSelectable)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
14 SALOMEDS_AttributeSelectable::SALOMEDS_AttributeSelectable(SALOMEDS::AttributeSelectable_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
18 SALOMEDS_AttributeSelectable::~SALOMEDS_AttributeSelectable()
21 bool SALOMEDS_AttributeSelectable::IsSelectable()
24 if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_local_impl)->IsSelectable();
25 else aValue = SALOMEDS::AttributeSelectable::_narrow(_corba_impl)->IsSelectable();
29 void SALOMEDS_AttributeSelectable::SetSelectable(bool value)
31 if(_isLocal) Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_local_impl)->SetSelectable((int)value);
32 else SALOMEDS::AttributeSelectable::_narrow(_corba_impl)->SetSelectable(value);