1 // File : SALOMEDS_AttributeIOR.cxx
2 // Author : Sergey RUIN
5 #include "SALOMEDS_AttributeIOR.hxx"
8 #include <TCollection_AsciiString.hxx>
9 #include <TCollection_ExtendedString.hxx>
11 SALOMEDS_AttributeIOR::SALOMEDS_AttributeIOR(const Handle(SALOMEDSImpl_AttributeIOR)& theAttr)
12 :SALOMEDS_GenericAttribute(theAttr)
15 SALOMEDS_AttributeIOR::SALOMEDS_AttributeIOR(SALOMEDS::AttributeIOR_ptr theAttr)
16 :SALOMEDS_GenericAttribute(theAttr)
19 SALOMEDS_AttributeIOR::~SALOMEDS_AttributeIOR()
22 std::string SALOMEDS_AttributeIOR::Value()
26 aValue = TCollection_AsciiString(Handle(SALOMEDSImpl_AttributeIOR)::DownCast(_local_impl)->Value()).ToCString();
27 else aValue = SALOMEDS::AttributeIOR::_narrow(_corba_impl)->Value();
31 void SALOMEDS_AttributeIOR::SetValue(const std::string& value)
34 if(_isLocal) Handle(SALOMEDSImpl_AttributeIOR)::DownCast(_local_impl)->SetValue((char*)value.c_str());
35 else SALOMEDS::AttributeIOR::_narrow(_corba_impl)->SetValue(value.c_str());