Version: 9.7.0
KERNEL Namespace Reference

Methods to be used in SSL mode to skip NS. More...

Functions

Engines_Container_igetContainerSA ()
 
Engines::Container_var getContainerRefSA ()
 
CORBA::ORB_ptr getORB ()
 This function returns a static reference to the orb. More...
 
void assignNamingServiceSL ()
 
SALOME_NamingService_AbstractgetNamingService ()
 This function returns a static reference to the SALOME naming service. More...
 
SALOME_LifeCycleCORBAgetLifeCycleCORBA ()
 This function returns a static reference to the SALOME life cycle CORBA. More...
 
SALOMEDS::Study_ptr getStudyServant ()
 This returns a static reference to the SALOME study. More...
 
SALOME::Session_ptr getSalomeSession ()
 This returns a static reference to the SALOME session. More...
 
Engines::SalomeLauncher_ptr getSalomeLauncher ()
 This returns a static reference to the SALOME launcher. More...
 
Engines::ResourcesManager_ptr getResourcesManager ()
 
CORBA::Object_ptr SObjectToObject (SALOMEDS::SObject_ptr theSObject)
 This function retrieve the CORBA object reference from the study object wrapping it. More...
 
CORBA::Object_ptr IORToObject (char *IOR)
 This function provides a CORBA pointer to a servant from its IOR given as a string of characters. More...
 
SALOME::SALOME_Exception createSalomeException (const char *text)
 
void RegisterCompo (const std::string &compoName, CORBA::Object_var compoPtr)
 
CORBA::Object_var RetrieveCompo (const std::string &compoName)
 
template<class TInterface >
TInterface::_var_type ObjectToInterface (CORBA::Object_ptr object)
 This template function provides you with the servant (CORBA object narrowed to its interface) corresponding to the specified CORBA object (naked CORBA pointer). More...
 
template<class TInterface >
TInterface::_var_type SObjectToInterface (SALOMEDS::SObject_ptr sobject)
 
SALOME_LaunchergetLauncherSA ()
 
SALOME_ModuleCatalog::ModuleCatalog_ptr getModuleComponentServantSA (const char *listOfCatalogs=nullptr)
 
Standard_EXPORT SALOMEDS::Study_ptr getStudyServantSA ()
 Return a unique study obj but servant is embeded here. More...
 
Standard_EXPORT void setStudyServantSA (SALOMEDS::Study_var study, PortableServer::POA_var poa)
 If a study is already built and activated elsewhere (for example in GUI context) More...
 

Detailed Description

Methods to be used in SSL mode to skip NS.

Function Documentation

◆ assignNamingServiceSL()

void KERNEL::assignNamingServiceSL ( )

◆ createSalomeException()

SALOME::SALOME_Exception KERNEL::createSalomeException ( const char text)

◆ getContainerRefSA()

Engines::Container_var KERNEL::getContainerRefSA ( )

◆ getContainerSA()

◆ getLauncherSA()

SALOME_Launcher * KERNEL::getLauncherSA ( )

◆ getLifeCycleCORBA()

SALOME_LifeCycleCORBA * KERNEL::getLifeCycleCORBA ( )

This function returns a static reference to the SALOME life cycle CORBA.

References getNamingService().

Referenced by TEST_corba(), KernelHelpersUnitTests::TEST_corba(), TEST_getLifeCycleCORBA(), and KernelHelpersUnitTests::TEST_getLifeCycleCORBA().

◆ getModuleComponentServantSA()

SALOME_ModuleCatalog::ModuleCatalog_ptr KERNEL::getModuleComponentServantSA ( const char listOfCatalogs = nullptr)

◆ getNamingService()

◆ getORB()

CORBA::ORB_ptr KERNEL::getORB ( )

This function returns a static reference to the orb.

The orb can be used for example to initialize CORBA variables or to serialize and unserialize the CORBA objet to/from an IOR string.

References salome::orb.

Referenced by GetModuleCatalogInstance(), getModuleComponentServantSA(), getNamingService(), GetSessionInstance(), getStudyServantSA(), IORToObject(), RegisterCompoInternal(), RetrieveCompoInternal(), SObjectToObject(), TEST_corba(), and KernelHelpersUnitTests::TEST_corba().

◆ getResourcesManager()

Engines::ResourcesManager_ptr KERNEL::getResourcesManager ( )

◆ getSalomeLauncher()

Engines::SalomeLauncher_ptr KERNEL::getSalomeLauncher ( )

This returns a static reference to the SALOME launcher.

The SALOME launcher can be used to schedule jobs, local or remote, using a batch system or not (see SALOME documentation).

References getNamingService(), KERNEL_PY.batchmode_salome::obj, and SALOME_NamingService_Abstract::Resolve().

Referenced by KernelHelpersUnitTests::TEST_getSalomeLauncher(), and TEST_getSalomeLauncher().

◆ getSalomeSession()

SALOME::Session_ptr KERNEL::getSalomeSession ( )

This returns a static reference to the SALOME session.

The SALOME session can be used to retrieve some objects of the current session, as the SALOME study.

References getNamingService(), KERNEL_PY.batchmode_salome::obj, and SALOME_NamingService_Abstract::Resolve().

◆ getStudyServant()

◆ getStudyServantSA()

SALOMEDS::Study_ptr KERNEL::getStudyServantSA ( )

Return a unique study obj but servant is embeded here.

References _poa, _study, getORB(), KERNEL_PY.batchmode_salome::obj, salome::orb, and SALOME_ContainerPy::poa.

Referenced by GetSessionInstance().

◆ IORToObject()

CORBA::Object_ptr KERNEL::IORToObject ( char IOR)

This function provides a CORBA pointer to a servant from its IOR given as a string of characters.

References getORB().

◆ ObjectToInterface()

template<class TInterface >
TInterface::_var_type KERNEL::ObjectToInterface ( CORBA::Object_ptr  object)

This template function provides you with the servant (CORBA object narrowed to its interface) corresponding to the specified CORBA object (naked CORBA pointer).

◆ RegisterCompo()

void KERNEL::RegisterCompo ( const std::string &  compoName,
CORBA::Object_var  compoPtr 
)

References _compo_map.

Referenced by RegisterCompoInternal().

◆ RetrieveCompo()

CORBA::Object_var KERNEL::RetrieveCompo ( const std::string &  compoName)

◆ setStudyServantSA()

void KERNEL::setStudyServantSA ( SALOMEDS::Study_var  study,
PortableServer::POA_var  poa 
)

If a study is already built and activated elsewhere (for example in GUI context)

References _poa, _study, and SALOME_ContainerPy::poa.

Referenced by CreateStudyNSAbstract().

◆ SObjectToInterface()

template<class TInterface >
TInterface::_var_type KERNEL::SObjectToInterface ( SALOMEDS::SObject_ptr  sobject)

References SObjectToObject().

◆ SObjectToObject()

CORBA::Object_ptr KERNEL::SObjectToObject ( SALOMEDS::SObject_ptr  theSObject)

This function retrieve the CORBA object reference from the study object wrapping it.

References getORB(), and INFOS.

Referenced by SObjectToInterface().