Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeOpened_i.cxx
1 //  File   : SALOMEDS_AttributeOpened_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributeOpened_i.hxx"
7 #include "SALOMEDS.hxx"
8
9 using namespace std;
10
11 CORBA::Boolean SALOMEDS_AttributeOpened_i::IsOpened() 
12 {
13   SALOMEDS::Locker lock; 
14   return (Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_impl)->IsOpened() == 1);
15 }
16                                                            
17 void SALOMEDS_AttributeOpened_i::SetOpened(CORBA::Boolean value) 
18 {
19   SALOMEDS::Locker lock; 
20   
21   Standard_Integer val = 0;
22   if (value != 0) val = 1;
23   Handle(SALOMEDSImpl_AttributeOpened)::DownCast(_impl)->SetOpened(val);
24 }