21 #ifndef __KERNEL_SERVICES_H__
22 #define __KERNEL_SERVICES_H__
26 #include "SALOMEconfig.h"
27 #include CORBA_SERVER_HEADER(SALOMEDS)
28 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
29 #include CORBA_SERVER_HEADER(SALOME_Launcher)
30 #include CORBA_CLIENT_HEADER(SALOME_Session)
31 #include CORBA_SERVER_HEADER(SALOME_Exception)
64 template<
class TInterface>
typename TInterface::_var_type
66 if(!CORBA::is_nil(
object))
67 return TInterface::_narrow(
object);
68 return TInterface::_nil();
71 template<
class TInterface>
typename TInterface::_var_type
74 return ObjectToInterface<TInterface>(object);
96 #define SALOMELOG(msg) {MESS_BEGIN("[XSALOME]") << msg << MESS_END}
103 #endif // KERNEL_SERVICES