1 // File : SALOMEDS_AttributeUserID.cxx
2 // Author : Sergey RUIN
5 #include "SALOMEDS_AttributeUserID.hxx"
8 #include <TCollection_AsciiString.hxx>
9 #include <TCollection_ExtendedString.hxx>
10 #include <Standard_GUID.hxx>
12 SALOMEDS_AttributeUserID::SALOMEDS_AttributeUserID(const Handle(SALOMEDSImpl_AttributeUserID)& theAttr)
13 :SALOMEDS_GenericAttribute(theAttr)
16 SALOMEDS_AttributeUserID::SALOMEDS_AttributeUserID(SALOMEDS::AttributeUserID_ptr theAttr)
17 :SALOMEDS_GenericAttribute(theAttr)
20 SALOMEDS_AttributeUserID::~SALOMEDS_AttributeUserID()
23 std::string SALOMEDS_AttributeUserID::Value()
28 Handle(SALOMEDSImpl_AttributeUserID)::DownCast(_local_impl)->Value().ToCString(guid);
29 aValue = std::string(guid);
31 else aValue = SALOMEDS::AttributeUserID::_narrow(_corba_impl)->Value();
35 void SALOMEDS_AttributeUserID::SetValue(const std::string& value)
38 if(_isLocal) Handle(SALOMEDSImpl_AttributeUserID)::DownCast(_local_impl)->SetValue(Standard_GUID((char*)value.c_str()));
39 else SALOMEDS::AttributeUserID::_narrow(_corba_impl)->SetValue(value.c_str());