]> SALOME platform Git repositories - modules/yacs.git/blob - src/SALOMEDS/SALOMEDS_AttributeUserID_i.cxx
Salome HOME
PR: merge from branch BR_UT_V310a3 tag mergeto_trunk_05dec05
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_AttributeUserID_i.cxx
1 //  File   : SALOMEDS_AttributeName_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributeUserID_i.hxx"
7 #include "SALOMEDS.hxx"
8 #include <TCollection_ExtendedString.hxx>
9
10 using namespace std;
11
12 char* SALOMEDS_AttributeUserID_i::Value() 
13 {
14   SALOMEDS::Locker lock;
15   char aGUID[40];
16   Handle(SALOMEDSImpl_AttributeUserID)::DownCast(_impl)->ID().ToCString(aGUID);
17   CORBA::String_var c_s = CORBA::string_dup(aGUID);
18   return c_s._retn();
19 }
20
21 void SALOMEDS_AttributeUserID_i::SetValue(const char* value) 
22 {
23   SALOMEDS::Locker lock;
24   CheckLocked();
25   CORBA::String_var Str = CORBA::string_dup(value);
26   Handle(SALOMEDSImpl_AttributeUserID)::DownCast(_impl)->SetValue(Standard_GUID(Standard_CString(Str)));
27 }
28