#include "SMESH_Gen_i.hxx"
#include "SALOME_Container_i.hxx"
#include "SALOME_KernelServices.hxx"
-#include "SALOMEDS_Study_i.hxx"
#include <cstring>
-
std::string BuildSMESHInstanceInternal(bool checkNS)
{
CORBA::ORB_var orb;
CORBA::String_var ior = orb->object_to_string(zeRef);
return std::string(ior.in());
}
-
-std::string GetSessionInstanceInternal()
-{
- SALOMEDS::Study_var study = KERNEL::getStudyServantSA();
- CORBA::ORB_ptr orb = KERNEL::getORB();
- CORBA::String_var ior = orb->object_to_string(study);
- return std::string(ior.in());
-}
{
return BuildSMESHInstanceInternal(checkNS);
}
-
- std::string GetSessionInstance()
- {
- return GetSessionInstanceInternal();
- }
}
-
-%pythoncode %{
-
-def myStudy():
- import SALOMEDS
- import CORBA
- orb=CORBA.ORB_init([''])
- return orb.string_to_object(GetSessionInstance())
-
-%}
\ No newline at end of file