Version: 6.3.1
Public Member Functions | Protected Attributes

SALOME_Session_i Class Reference

#include <Session_Session_i.hxx>

Inheritance diagram for SALOME_Session_i:
Inheritance graph

Public Member Functions

 SALOME_Session_i (int argc, char **argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, QMutex *GUIMutex, QWaitCondition *GUILauncher)
 ~SALOME_Session_i ()
void GetInterface ()
 Launch Graphical User Interface.
Engines::EngineComponent_ptr GetComponent (const char *theLibraryName)
 Return VISU component.
void StopSession ()
 Stop the Session (must be idle): kill servant & server.
SALOME::StatSession GetStatSession ()
 Get session state.
void NSregister ()
 Register the servant to Naming Service.
CORBA::Long GetActiveStudyId ()
void ping ()
CORBA::Long getPID ()
char * getHostname ()
bool restoreVisualState (CORBA::Long theSavePoint)
 Restors a visual state of the study at theSavePoint.
void emitMessage (const char *theMessage)
 Emit a qt signal from the session GUI desktop window.
void emitMessageOneWay (const char *theMessage)

Protected Attributes

SALOME_NamingService * _NS
 Naming service interface.
int _argc
char ** _argv
CORBA::Boolean _isGUI
QMutex * _GUIMutex
QWaitCondition * _GUILauncher
int _runningStudies
CORBA::ORB_var _orb
PortableServer::POA_var _poa

Constructor & Destructor Documentation

SALOME_Session_i::SALOME_Session_i ( int  argc,
char **  argv,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
QMutex *  GUIMutex,
QWaitCondition *  GUILauncher 
)

constructor

SALOME_Session_i::~SALOME_Session_i ( )

destructor


Member Function Documentation

void SALOME_Session_i::GetInterface ( )

Launches the GUI if there is none. The Corba method is oneway (corba client does'nt wait for GUI completion)

References SUIT_Session.session().

Engines::EngineComponent_ptr SALOME_Session_i::GetComponent ( const char *  theLibraryName)

returns Visu component

void SALOME_Session_i::StopSession ( )

Processes event to close session

References ProcessVoidEvent().

SALOME::StatSession SALOME_Session_i::GetStatSession ( )

Send a SALOME.StatSession structure (see idl) to the client (number of running studies and presence of GUI)

References SUIT_Session.activeApplication(), SUIT_Application.getNbStudies(), and SUIT_Session.session().

void SALOME_Session_i::NSregister ( )

tries to find the Corba Naming Service and to register the session, gives naming service interface to _IAPPThread

CORBA::Long SALOME_Session_i::GetActiveStudyId ( )
void SALOME_Session_i.ping ( )
CORBA::Long SALOME_Session_i::getPID ( )
char * SALOME_Session_i::getHostname ( )
bool SALOME_Session_i::restoreVisualState ( CORBA::Long  theSavePoint)
void SALOME_Session_i::emitMessage ( const char *  theMessage)
void SALOME_Session_i::emitMessageOneWay ( const char *  theMessage)

Field Documentation

SALOME_NamingService* SALOME_Session_i._NS [protected]
int SALOME_Session_i._argc [protected]
char** SALOME_Session_i._argv [protected]
CORBA::Boolean SALOME_Session_i._isGUI [protected]
QMutex* SALOME_Session_i._GUIMutex [protected]
QWaitCondition* SALOME_Session_i._GUILauncher [protected]
CORBA::ORB_var SALOME_Session_i._orb [protected]
PortableServer::POA_var SALOME_Session_i._poa [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS