Back to index

salome-kernel  6.5.0
Namespaces | Defines | Functions
SALOME_KernelServices.hxx File Reference
#include "KernelHelpers.hxx"
#include "SALOMEconfig.h"
#include "SALOME_NamingService.hxx"
#include "SALOME_LifeCycleCORBA.hxx"
#include "utilities.h"
#include <CORBA.h>
#include <ostream>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


namespace  KERNEL


#define SALOMELOG(msg)   {MESS_BEGIN("[XSALOME]") << msg << MESS_END}


 This function returns a static reference to the orb.
SALOME_NamingServiceKERNEL::getNamingService ()
 This function returns a static reference to the SALOME naming service.
 This function returns a static reference to the SALOME life cycle CORBA.
SALOME::Session_ptr KERNEL::getSalomeSession ()
 This returns a static reference to the SALOME session.
SALOMEDS::StudyManager_ptr KERNEL::getStudyManager ()
 This returns a static reference to the SALOME study manager.
Engines::SalomeLauncher_ptr KERNEL::getSalomeLauncher ()
 This returns a static reference to the SALOME launcher.
Engines::ResourcesManager_ptr KERNEL::getResourcesManager ()
SALOMEDS::Study_ptr KERNEL::getStudyById (int aStudyId)
 This returns the study with the specified id if it's defined in the SALOME study manager.
int KERNEL::getStudyId (SALOMEDS::Study_ptr study)
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.
CORBA::Object_ptr KERNEL::SObjectToObject (SALOMEDS::SObject_ptr theSObject)
 This function retrieve the CORBA object reference from the study object wrapping it.
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).
template<class TInterface >
TInterface::_var_type KERNEL::SObjectToInterface (SALOMEDS::SObject_ptr sobject)
SALOME::SALOME_Exception KERNEL::createSalomeException (const char *text)
static std::ostream & operator<< (std::ostream &os, const CORBA::Exception &e)

Define Documentation


Definition at line 97 of file SALOME_KernelServices.hxx.

#define SALOMELOG (   msg)    {MESS_BEGIN("[XSALOME]") << msg << MESS_END}

Definition at line 96 of file SALOME_KernelServices.hxx.

Function Documentation

static std::ostream& operator<< ( std::ostream &  os,
const CORBA::Exception &  e 
) [static]

Definition at line 104 of file SALOME_KernelServices.hxx.

  CORBA::Any tmp;
  tmp <<=e ;
  CORBA::TypeCode_var tc = tmp.type();
  const char * p = tc->name ();
  if (*p != '\0')
    os << p;
    os << tc->id();
  return os;