1 // File : SALOMEDS_AttributeInteger.cxx
2 // Author : Sergey RUIN
5 #include "SALOMEDS_AttributeInteger.hxx"
7 #include <TCollection_AsciiString.hxx>
8 #include <TCollection_ExtendedString.hxx>
10 SALOMEDS_AttributeInteger::SALOMEDS_AttributeInteger(const Handle(SALOMEDSImpl_AttributeInteger)& theAttr)
11 :SALOMEDS_GenericAttribute(theAttr)
14 SALOMEDS_AttributeInteger::SALOMEDS_AttributeInteger(SALOMEDS::AttributeInteger_ptr theAttr)
15 :SALOMEDS_GenericAttribute(theAttr)
18 SALOMEDS_AttributeInteger::~SALOMEDS_AttributeInteger()
21 int SALOMEDS_AttributeInteger::Value()
24 if(_isLocal) aValue = Handle(SALOMEDSImpl_AttributeInteger)::DownCast(_local_impl)->Value();
25 else aValue = SALOMEDS::AttributeInteger::_narrow(_corba_impl)->Value();
29 void SALOMEDS_AttributeInteger::SetValue(int value)
32 if(_isLocal) Handle(SALOMEDSImpl_AttributeInteger)::DownCast(_local_impl)->SetValue(value);
33 else SALOMEDS::AttributeInteger::_narrow(_corba_impl)->SetValue(value);