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