Version: 9.12.0
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 (int argc, char **argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, QMutex *GUIMutex, QWaitCondition *GUILauncher, SALOME_NamingService_Abstract *NS)
 
 ~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...
 
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 Member Functions

void deleteContainersinNS ()
 

Protected Attributes

std::unique_ptr< SALOME_NamingService_Abstract > _NS
 Naming service interface. More...
 
int _argc
 
char ** _argv
 
CORBA::Boolean _isGUI
 
QMutex * _GUIMutex
 
QWaitCondition * _GUILauncher
 
CORBA::ORB_var _orb
 
PortableServer::POA_var _poa
 
bool _isShuttingDown
 

Constructor & Destructor Documentation

◆ SALOME_Session_i() [1/2]

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

References _NS, and _orb.

◆ SALOME_Session_i() [2/2]

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

References _NS.

◆ ~SALOME_Session_i()

SALOME_Session_i::~SALOME_Session_i ( )

destructor

Member Function Documentation

◆ deleteContainersinNS()

void SALOME_Session_i::deleteContainersinNS ( )
protected

References _NS.

◆ emitMessage()

void SALOME_Session_i::emitMessage ( const char *  theMessage)

◆ emitMessageOneWay()

void SALOME_Session_i::emitMessageOneWay ( const char *  theMessage)

References emitMessage().

◆ GetComponent()

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

Return VISU component.

returns Visu component

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

◆ getHostname()

char * SALOME_Session_i::getHostname ( )

◆ GetInterface()

void SALOME_Session_i::GetInterface ( )

Launch Graphical User Interface.

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().

◆ getPID()

CORBA::Long SALOME_Session_i::getPID ( )

◆ getSelection()

SALOME::StringSeq * SALOME_Session_i::getSelection ( )

◆ GetStatSession()

SALOME::StatSession SALOME_Session_i::GetStatSession ( )

Get session state.

Send a SALOME::StatSession structure (see idl) to the client (presence of GUI)

References _GUIMutex, _isGUI, _isShuttingDown, SUIT_Session::activeApplication(), SUIT_Application::getNbStudies(), and SUIT_Session::session().

◆ NSregister()

void SALOME_Session_i::NSregister ( )

Register the servant to Naming Service.

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

References _NS.

◆ NSunregister()

void SALOME_Session_i::NSunregister ( )

Unregister the servant from Naming Service.

Unregister session server from CORBA Naming Service

References _NS, and deleteContainersinNS().

◆ ping()

void SALOME_Session_i::ping ( )
inline

◆ restoreVisualState()

bool SALOME_Session_i::restoreVisualState ( CORBA::Long  theSavePoint)

◆ Shutdown()

void SALOME_Session_i::Shutdown ( )

◆ StopSession()

void SALOME_Session_i::StopSession ( )

Stop the Session (must be idle): kill servant & server.

Stop session (close all GUI windows)

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

Member Data Documentation

◆ _argc

int SALOME_Session_i::_argc
protected

◆ _argv

char** SALOME_Session_i::_argv
protected

◆ _GUILauncher

QWaitCondition* SALOME_Session_i::_GUILauncher
protected

◆ _GUIMutex

QMutex* SALOME_Session_i::_GUIMutex
protected

◆ _isGUI

CORBA::Boolean SALOME_Session_i::_isGUI
protected

◆ _isShuttingDown

bool SALOME_Session_i::_isShuttingDown
protected

◆ _NS

std::unique_ptr<SALOME_NamingService_Abstract> SALOME_Session_i::_NS
protected

Naming service interface.

◆ _orb

CORBA::ORB_var SALOME_Session_i::_orb
protected

◆ _poa

PortableServer::POA_var SALOME_Session_i::_poa
protected

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