Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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. More...
 
Engines::EngineComponent_ptr GetComponent (const char *theLibraryName)
 Return VISU component. More...
 
void StopSession ()
 Stop the Session (must be idle): kill servant & server. More...
 
SALOME::StatSession GetStatSession ()
 Get session state. More...
 
void Shutdown ()
 Shutdown session. More...
 
void NSregister ()
 Register the servant to Naming Service. More...
 
void NSunregister ()
 Unregister the servant from Naming Service. More...
 
CORBA::Long GetActiveStudyId ()
 
void ping ()
 
CORBA::Long getPID ()
 
char * getHostname ()
 
bool restoreVisualState (CORBA::Long theSavePoint)
 Restors a visual state of the study at theSavePoint. More...
 
SALOME::StringSeq * getSelection ()
 Get list of selected entities. More...
 
void emitMessage (const char *theMessage)
 Emit a qt signal from the session GUI desktop window. More...
 
void emitMessageOneWay (const char *theMessage)
 

Protected Attributes

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

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 
)
SALOME_Session_i::~SALOME_Session_i ( )

destructor

References _NS.

Member Function Documentation

void SALOME_Session_i::emitMessageOneWay ( const char *  theMessage)

References emitMessage().

CORBA::Long SALOME_Session_i::GetActiveStudyId ( )
Engines::EngineComponent_ptr SALOME_Session_i::GetComponent ( const char *  theLibraryName)

returns Visu component

References _GUIMutex, _NS, _orb, _poa, SalomeApp_Engine_i::EngineForComponent(), and obj.

char * SALOME_Session_i::getHostname ( )
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 _GUILauncher, _GUIMutex, and SUIT_Session::session().

CORBA::Long SALOME_Session_i::getPID ( )
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 _GUIMutex, _isGUI, _isShuttingDown, _runningStudies, 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

References _NS.

void SALOME_Session_i::NSunregister ( )

Unregister session server from CORBA Naming Service

References _NS.

void SALOME_Session_i::ping ( )
inline
void SALOME_Session_i::Shutdown ( )
void SALOME_Session_i::StopSession ( )

Stop session (close all GUI windows)

References _GUIMutex, ProcessVoidEvent(), and SUIT_Session::session().

Member Data Documentation

int SALOME_Session_i::_argc
protected
char** SALOME_Session_i::_argv
protected
QWaitCondition* SALOME_Session_i::_GUILauncher
protected
QMutex* SALOME_Session_i::_GUIMutex
protected
CORBA::Boolean SALOME_Session_i::_isGUI
protected
bool SALOME_Session_i::_isShuttingDown
protected
SALOME_NamingService* SALOME_Session_i::_NS
protected
CORBA::ORB_var SALOME_Session_i::_orb
protected
PortableServer::POA_var SALOME_Session_i::_poa
protected
int SALOME_Session_i::_runningStudies
protected

The documentation for this class was generated from the following files: