]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_AttributeSelectable.cxx
Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeSelectable.cxx
1 //  File   : SALOMEDS_AttributeSelectable.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #include "SALOMEDS_AttributeSelectable.hxx"
6
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
9
10 SALOMEDS_AttributeSelectable::SALOMEDS_AttributeSelectable(const Handle(SALOMEDSImpl_AttributeSelectable)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
12 {}
13
14 SALOMEDS_AttributeSelectable::SALOMEDS_AttributeSelectable(SALOMEDS::AttributeSelectable_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
16 {}
17
18 SALOMEDS_AttributeSelectable::~SALOMEDS_AttributeSelectable()
19 {}
20
21 bool SALOMEDS_AttributeSelectable::IsSelectable()
22 {
23   bool aValue;
24   if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_local_impl)->IsSelectable();
25   else aValue = SALOMEDS::AttributeSelectable::_narrow(_corba_impl)->IsSelectable();
26   return aValue;
27 }
28  
29 void SALOMEDS_AttributeSelectable::SetSelectable(bool value)
30 {
31   if(_isLocal) Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_local_impl)->SetSelectable((int)value);
32   else SALOMEDS::AttributeSelectable::_narrow(_corba_impl)->SetSelectable(value);
33 }