Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeExpandable.cxx
1 //  File   : SALOMEDS_AttributeExpandable.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5 #include "SALOMEDS_AttributeExpandable.hxx"
6
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
9
10 SALOMEDS_AttributeExpandable::SALOMEDS_AttributeExpandable(const Handle(SALOMEDSImpl_AttributeExpandable)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
12 {}
13
14 SALOMEDS_AttributeExpandable::SALOMEDS_AttributeExpandable(SALOMEDS::AttributeExpandable_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
16 {}
17
18 SALOMEDS_AttributeExpandable::~SALOMEDS_AttributeExpandable()
19 {}
20
21 bool SALOMEDS_AttributeExpandable::IsExpandable()
22 {
23   bool aValue;
24   if(_isLocal) aValue = (bool)Handle(SALOMEDSImpl_AttributeExpandable)::DownCast(_local_impl)->IsExpandable();
25   else aValue = SALOMEDS::AttributeExpandable::_narrow(_corba_impl)->IsExpandable();
26   return aValue;
27 }
28  
29 void SALOMEDS_AttributeExpandable::SetExpandable(bool value)
30 {
31   CheckLocked();
32   if(_isLocal) Handle(SALOMEDSImpl_AttributeExpandable)::DownCast(_local_impl)->SetExpandable((int)value);
33   else SALOMEDS::AttributeExpandable::_narrow(_corba_impl)->SetExpandable(value);
34 }