1 // File : SALOMEDS_AttributePythonObject_i.cxx
2 // Author : Sergey RUIN
6 #include "SALOMEDS_AttributePythonObject_i.hxx"
7 #include "SALOMEDS.hxx"
8 #include <TCollection_ExtendedString.hxx>
9 #include <TColStd_HArray1OfCharacter.hxx>
13 void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript)
15 SALOMEDS::Locker lock;
17 char *aSeq = CORBA::string_dup(theSequence);
18 Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->SetObject(aSeq, IsScript);
21 char* SALOMEDS_AttributePythonObject_i::GetObject()
23 SALOMEDS::Locker lock;
24 char* aSeq = Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->GetObject().ToCString();
25 CORBA::String_var aStr = CORBA::string_dup(aSeq);
29 CORBA::Boolean SALOMEDS_AttributePythonObject_i::IsScript()
31 SALOMEDS::Locker lock;
32 return Handle(SALOMEDSImpl_AttributePythonObject)::DownCast(_impl)->IsScript();