Back to index

salome-paravis  6.5.0
Namespaces | Defines | Functions | Variables
PARAVIS_Engine_i.cc File Reference
#include "PARAVIS_Engine_i.hh"
#include "utilities.h"
#include "SALOME_NamingService.hxx"
#include "Utils_ExceptHandlers.hxx"

Go to the source code of this file.

Namespaces

namespace  PARAVIS
 The main package of interfaces of the module PARAVIS.

Defines

#define PARAVIS_ENGINE_EXPORT

Functions

 UNEXPECT_CATCH (SalomeException, SALOME::SALOME_Exception)
PARAVIS_ENGINE_EXPORT
PortableServer::ObjectId * 
PARAVISEngine_factory (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName)

Variables

static int MYDEBUG = 0

Define Documentation

Definition at line 44 of file PARAVIS_Engine_i.cc.


Function Documentation

PARAVIS_ENGINE_EXPORT PortableServer::ObjectId* PARAVISEngine_factory ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)

Definition at line 50 of file PARAVIS_Engine_i.cc.

{
  MESSAGE("PARAVISEngine_factory : "<<interfaceName);
  SALOME_NamingService aNamingService(orb);
  CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");
  SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
  if (CORBA::is_nil(aSession))
    return NULL;
  
  PARAVIS::PARAVIS_Gen_i* pPARAVIS_Gen = new PARAVIS::PARAVIS_Gen_i(aSession, 
                                                                    orb, 
                                                                    poa, 
                                                                    contId, 
                                                                    instanceName, 
                                                                    interfaceName);
  return pPARAVIS_Gen->getId() ;
}
UNEXPECT_CATCH ( SalomeException  ,
SALOME::SALOME_Exception   
)

Variable Documentation

int MYDEBUG = 0 [static]

Definition at line 34 of file PARAVIS_Engine_i.cc.