21 #ifndef __SALOME_KERNEL_SERVICES_HXX__
22 #define __SALOME_KERNEL_SERVICES_HXX__
27 #include "SALOMEconfig.h"
28 #include CORBA_SERVER_HEADER(SALOMEDS)
29 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
30 #include CORBA_SERVER_HEADER(SALOME_Launcher)
31 #include CORBA_CLIENT_HEADER(SALOME_Session)
32 #include CORBA_SERVER_HEADER(SALOME_Exception)
66 template<
class TInterface>
typename TInterface::_var_type
68 if(!CORBA::is_nil(
object))
69 return TInterface::_narrow(
object);
70 return TInterface::_nil();
73 template<
class TInterface>
typename TInterface::_var_type
76 return ObjectToInterface<TInterface>(
object);
97 #include "utilities.h"
98 #define SALOMELOG(msg) {MESS_BEGIN("[XSALOME]") << msg << MESS_END}
102 #define LOG SALOMELOG
#define KERNELHELPERS_EXPORT
Definition: KernelHelpers.hxx:36
A class to manage life cycle of SALOME components.
Definition: SALOME_LifeCycleCORBA.hxx:63
Definition: SALOME_NamingService_Abstract.hxx:46
The main exception in SALOME application.
Definition: SALOME_Exception.idl:71
Methods to be used in SSL mode to skip NS.
Definition: SALOME_Container_i.hxx:335
void RegisterCompo(const std::string &compoName, CORBA::Object_var compoPtr)
Definition: SALOME_KernelServices.cxx:177
CORBA::Object_ptr SObjectToObject(SALOMEDS::SObject_ptr theSObject)
This function retrieve the CORBA object reference from the study object wrapping it.
Definition: SALOME_KernelServices.cxx:137
SALOMEDS::Study_ptr getStudyServant()
This returns a static reference to the SALOME study.
Definition: SALOME_KernelServices.cxx:81
TInterface::_var_type ObjectToInterface(CORBA::Object_ptr object)
This template function provides you with the servant (CORBA object narrowed to its interface) corresp...
Definition: SALOME_KernelServices.hxx:67
SALOME_NamingService_Abstract * getNamingService()
This function returns a static reference to the SALOME naming service.
Definition: SALOME_KernelServices.cxx:51
SALOME::SALOME_Exception createSalomeException(const char *text)
Definition: SALOME_KernelServices.cxx:170
SALOME::Session_ptr getSalomeSession()
This returns a static reference to the SALOME session.
Definition: SALOME_KernelServices.cxx:96
SALOME_LifeCycleCORBA * getLifeCycleCORBA()
This function returns a static reference to the SALOME life cycle CORBA.
Definition: SALOME_KernelServices.cxx:66
Engines::SalomeLauncher_ptr getSalomeLauncher()
This returns a static reference to the SALOME launcher.
Definition: SALOME_KernelServices.cxx:111
CORBA::Object_var RetrieveCompo(const std::string &compoName)
Definition: SALOME_KernelServices.cxx:182
Engines::ResourcesManager_ptr getResourcesManager()
Definition: SALOME_KernelServices.cxx:123
void assignNamingServiceSL()
Definition: SALOME_KernelServices.cxx:36
CORBA::Object_ptr IORToObject(char *IOR)
This function provides a CORBA pointer to a servant from its IOR given as a string of characters.
Definition: SALOME_KernelServices.cxx:161
TInterface::_var_type SObjectToInterface(SALOMEDS::SObject_ptr sobject)
Definition: SALOME_KernelServices.hxx:74