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