Version: 9.12.0
KERNEL Namespace Reference

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

Functions

Engines_Container_SSL_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_Logger::Logger_ptr getLoggerServantSA ()
 
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 SALOMEDS::Study_var retrieveNewStudyServantSA ()
 
Standard_EXPORT void killStudyServantSA ()
 
Standard_EXPORT void setStudyServantSA (SALOMEDS::Study_var study)
 
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...
 
CORBA::ORB_var GetRefToORB ()
 

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()

◆ getLifeCycleCORBA()

SALOME_LifeCycleCORBA * KERNEL::getLifeCycleCORBA ( )

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

References getNamingService().

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

◆ getLoggerServantSA()

SALOME_Logger::Logger_ptr KERNEL::getLoggerServantSA ( )

◆ getModuleComponentServantSA()

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

◆ getNamingService()

◆ getORB()

◆ GetRefToORB()

◆ 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_Container_Abstract::Resolve().

Referenced by TEST_getSalomeLauncher(), and KernelHelpersUnitTests::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_Container_Abstract::Resolve().

◆ getStudyServant()

◆ getStudyServantSA()

SALOMEDS::Study_ptr KERNEL::getStudyServantSA ( )

Return a unique study obj but servant is embeded here.

References _study, and retrieveNewStudyServantSA().

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().

Referenced by SALOME_Embedded_NamingService::Register(), SALOME_Embedded_NamingService_Client::Resolve(), and SALOME_Embedded_NamingService_Client::ResolveFirst().

◆ killStudyServantSA()

void KERNEL::killStudyServantSA ( )

References _poa, and _study.

Referenced by KillGlobalSessionInstance(), and setStudyServantSA().

◆ 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)

◆ retrieveNewStudyServantSA()

SALOMEDS::Study_var KERNEL::retrieveNewStudyServantSA ( )

◆ setStudyServantSA() [1/2]

void KERNEL::setStudyServantSA ( SALOMEDS::Study_var  study)

◆ setStudyServantSA() [2/2]

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, SALOME_ContainerPy::poa, and setStudyServantSA().

◆ 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().