]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_AttributePythonObject_i.cxx
Salome HOME
This commit was generated by cvs2git to track changes on a CVS vendor
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributePythonObject_i.cxx
1 using namespace std;
2 // File:        SALOMEDS_AttributePythonObject_i.cxx
3 // Created:     Tue Oct  8 10:13:30 2002
4 // Author:      Michael Ponikarov
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE
8 //  $Header$
9
10 #include "SALOMEDS_AttributePythonObject_i.hxx"
11 #include <TCollection_ExtendedString.hxx>
12 #include <TColStd_HArray1OfCharacter.hxx>
13 #include "SALOMEDS_SObject_i.hxx"
14
15 void SALOMEDS_AttributePythonObject_i::SetObject(const char* theSequence, CORBA::Boolean IsScript) {
16   CheckLocked();
17   char *aSeq = CORBA::string_dup(theSequence);
18   Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->SetObject(aSeq, IsScript);
19 }
20
21 char* SALOMEDS_AttributePythonObject_i::GetObject() {
22   char* aSeq = Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->GetObject();
23   CORBA::String_var aStr = CORBA::string_dup(aSeq);
24   return aStr._retn();
25 }
26
27 CORBA::Boolean SALOMEDS_AttributePythonObject_i::IsScript() {
28   return Handle(SALOMEDS_PythonObjectAttribute)::DownCast(_myAttr)->IsScript();
29 }