]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_AttributeSelectable_i.cxx
Salome HOME
PR: merge from branch BR_UnitTests tag mergeto_trunk_17oct05
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeSelectable_i.cxx
1 //  File   : SALOMEDS_AttributeSelectable_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributeSelectable_i.hxx"
7 #include "SALOMEDS.hxx"
8
9 using namespace std;
10
11 CORBA::Boolean SALOMEDS_AttributeSelectable_i::IsSelectable() 
12 {
13   SALOMEDS::Locker lock;
14   return (Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_impl)->IsSelectable() == 1);
15 }
16                                                            
17 void SALOMEDS_AttributeSelectable_i::SetSelectable(CORBA::Boolean value) 
18 {
19   SALOMEDS::Locker lock;
20   Standard_Integer val = 0;
21   if (value != 0) val = 1;
22   Handle(SALOMEDSImpl_AttributeSelectable)::DownCast(_impl)->SetSelectable(val);
23 }
24