return self._rm
def salome_init_without_session():
- global lcc,myStudy,orb,modulcat,sg,cm
+ global lcc,naming_service,myStudy,orb,modulcat,sg,cm
import KernelBasis
KernelBasis.setSSLMode(True)
import KernelDS
from salome_kernel import list_of_catalogs_regarding_environement
modulcat = KernelModuleCatalog.myModuleCatalog( list_of_catalogs_regarding_environement() )
import KernelLauncher
+ from NamingService import NamingService
cm = KernelLauncher.myContainerManager()
lcc = StandAloneLifecyle(cm, KernelLauncher.myResourcesManager())
# activate poaManager to accept co-localized CORBA calls.
poaManager.activate()
sg = SalomeOutsideGUI()
salome_study_init_without_session()
+ naming_service = NamingService()
def salome_init_with_session(path=None, embedded=False):
"""
std::vector< std::string > repr();
static std::string GetLogContainersFile();
static void FlushLogContainersFile();
+ void Destroy_Name(const char* Path);
+ void Destroy_FullDirectory(const char* Path);
%extend {
static void SetLogContainersFileInternal(const std::string& logFileName)
{
CORBA::Object_var obj = orb->string_to_object(ior);
self->Register(obj,Path);
}
+ std::string _Resolve_DirInternal(const char *Path)
+ {
+ CORBA::ORB_ptr orb = KERNEL::getORB();
+ CORBA::Object_var ret = self->Resolve(Path);
+ CORBA::String_var ior = orb->object_to_string(ret);
+ return std::string(ior.in());
+ }
static std::string IOROfNS()
{
CORBA::ORB_ptr orb = KERNEL::getORB();
import CORBA
orb=CORBA.ORB_init([''])
self._RegisterInternal( orb.object_to_string(obj) , Path)
+def NamingService_Resolve_Dir(self,Path):
+ ret = self._Resolve_DirInternal( Path )
+ import CORBA
+ orb=CORBA.ORB_init([''])
+ return orb.string_to_object(ret)
NamingService.Resolve = NamingService_Resolve
NamingService.Register = NamingService_Register
+NamingService.Resolve_Dir = NamingService_Resolve_Dir
def NamingService_SetLogContainersFile(cls,logFileName = None):
if logFileName is None:
import tempfile