Salome HOME
ENV: Windows porting.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributePythonObject_i.cxx
1 //  File   : SALOMEDS_AttributePythonObject_i.cxx
2 //  Author : Sergey RUIN
3 //  Module : SALOME
4
5
6 #include "SALOMEDS_AttributePythonObject_i.hxx"
7 #include "SALOMEDS.hxx"
8 #include <TCollection_ExtendedString.hxx>
9 #include <TColStd_HArray1OfCharacter.hxx>
10
11 using namespace std;
12
13 void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript) 
14 {
15   SALOMEDS::Locker lock;
16   CheckLocked();
17   char *aSeq = CORBA::string_dup(theSequence);
18   Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->SetObject(aSeq, IsScript);
19 }
20
21 char* SALOMEDS_AttributePythonObject_i::GetObject() 
22 {
23   SALOMEDS::Locker lock;
24   char* aSeq = Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->GetObject().ToCString();
25   CORBA::String_var aStr = CORBA::string_dup(aSeq);
26   return aStr._retn();
27 }
28
29 CORBA::Boolean SALOMEDS_AttributePythonObject_i::IsScript() 
30 {
31   SALOMEDS::Locker lock;
32   return Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->IsScript();
33 }
34
35