2 // File: SALOMEDS_AttributePythonObject_i.cxx
3 // Created: Tue Oct 8 10:13:30 2002
4 // Author: Michael Ponikarov
7 // Copyright : Open CASCADE
10 #include "SALOMEDS_AttributePythonObject_i.hxx"
11 #include <TCollection_ExtendedString.hxx>
12 #include <TColStd_HArray1OfCharacter.hxx>
13 #include "SALOMEDS_SObject_i.hxx"
15 void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript) {
17 char *aSeq = CORBA::string_dup(theSequence);
18 Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->SetObject(aSeq, IsScript);
21 char* SALOMEDS_AttributePythonObject_i::GetObject() {
22 char* aSeq = Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->GetObject();
23 CORBA::String_var aStr = CORBA::string_dup(aSeq);
27 CORBA::Boolean SALOMEDS_AttributePythonObject_i::IsScript() {
28 return Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->IsScript();