//***//#include "VISU_Gen.idl"
+#include "SALOME_Component.idl"
/*! \defgroup Kernel SALOME KERNEL module
*/
*/
void GetInterface();
//***// VISU::VISU_Gen GetVisuGen();
+ Engines::Component GetVisuComponent();
/*!
Stops the %Session (It must be idle)
//***// return VISU::VISU_Gen::_nil();
//***//}
+typedef Engines::Component_ptr VisuGen(CORBA::ORB_var,PortableServer::POA_ptr,QMutex*);
+Engines::Component_ptr SALOME_Session_i::GetVisuComponent() {
+ MESSAGE("SALOME_Session_i::GetVisuGen");
+ OSD_SharedLibrary visuSharedLibrary("libVISUEngine.so");
+ if(visuSharedLibrary.DlOpen(OSD_RTLD_LAZY))
+ if(OSD_Function osdFun = visuSharedLibrary.DlSymb("GetVisuGen"))
+ return ((VisuGen (*)) osdFun)(_orb,_poa,&_GUIMutex);
+
+ MESSAGE ( "nil" )
+ return Engines::Component::_nil();
+}
+
//=============================================================================
/*! ~SALOME_Session_i
* destructor
#include <qthread.h>
#include <SALOMEconfig.h>
+#include CORBA_SERVER_HEADER(SALOME_Component)
//***//#include CORBA_SERVER_HEADER(VISU_Gen)
#include CORBA_SERVER_HEADER(SALOME_Session)
class SALOME_NamingService;
//! Launch Graphical User Interface
void GetInterface();
//***//VISU::VISU_Gen_ptr GetVisuGen();
+ Engines::Component_ptr GetVisuComponent();
//! Stop the Session (must be idle): kill servant & server
void StopSession();