Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeExpandable_i.cxx
1 using namespace std;
2 //  File      : SALOMEDS_AttributeExpandable_i.cxx
3 //  Created   : Fri Jul 05 14:25:13 2002
4 //  Author    : Yves FRICAUD
5
6 //  Project   : SALOME
7 //  Module    : SALOMEDS
8 //  Copyright : Open CASCADE 2002
9 //  $Header$
10
11
12 #include "SALOMEDS_AttributeExpandable_i.hxx"
13 #include "SALOMEDS_SObject_i.hxx"
14
15 CORBA::Boolean SALOMEDS_AttributeExpandable_i::IsExpandable() {
16   return (Handle(SALOMEDS_ExpandableAttribute)::DownCast(_myAttr)->Get() == 1);
17 }
18                                                            
19 void SALOMEDS_AttributeExpandable_i::SetExpandable(CORBA::Boolean value) {
20   Standard_Integer val = 0;
21   if (value != 0) val = 1;
22   Handle(TDataStd_Integer)::DownCast(_myAttr)->Set(val);
23 }