SALOME documentation central

SALOME::Session Interface Reference

Interface of the session. More...

Data Structures

exception  GUIActive
 This exception is raised when trying to stop the session with active GUI. More...
exception  RunningStudies
 This exception is raised when trying to stop the session with a number of running studies. More...

Public Member Functions

void GetInterface ()
 Launches GUI in the session.
Engines::Component GetComponent (in string theLibraryName)
 Returns a standalone component.
void StopSession () raises (GUIActive, RunningStudies)
 Stops the Session (It must be idle).
StatSession GetStatSession ()
 Gets Session State.
void ping ()
 Determines whether the server has already been loaded or not.
long getPID ()
 Returns the PID of the server.
long GetActiveStudyId ()
 Get Active study ID.
boolean restoreVisualState (in long theSavePoint)
 Restores a state of the study at theSavePoint.
void emitMessage (in string theMessage)
 Send a message to the session GUI desktop that will emit a qt signal.
oneway void emitMessageOneWay (in string theMessage)
 same as emitMessage but in a non blocking way

Detailed Description

Interface of the session.

The session Server launches and stops GUI (Graphical User Interface). The session can be active without GUI (It can contain one or more running studies)


Member Function Documentation

void SALOME::Session::GetInterface (  ) 

Launches GUI in the session.

Engines::Component SALOME::Session::GetComponent ( in string  theLibraryName  ) 

Returns a standalone component.

void SALOME::Session::StopSession (  )  raises (GUIActive, RunningStudies)

Stops the Session (It must be idle).

StatSession SALOME::Session::GetStatSession (  ) 

Gets Session State.

void SALOME::Session::ping (  ) 

Determines whether the server has already been loaded or not.

long SALOME::Session::getPID (  ) 

Returns the PID of the server.

long SALOME::Session::GetActiveStudyId (  ) 

Get Active study ID.

boolean SALOME::Session::restoreVisualState ( in long  theSavePoint  ) 

Restores a state of the study at theSavePoint.

void SALOME::Session::emitMessage ( in string  theMessage  ) 

Send a message to the session GUI desktop that will emit a qt signal.

This method can be used to send a message to the GUI from the standalone container. Caution: this method can block the Session and the calling container if it is called when container processes some request from the GUI (mutual lock takes place). In such a case it is recommended to use oneway method.

oneway void SALOME::Session::emitMessageOneWay ( in string  theMessage  ) 

same as emitMessage but in a non blocking way

Emit a qt signal from the session GUI desktop window. This method can be used to send a message to the GUI from the standalone container. This method never blocks the Session and the calling container.


Copyright © 2007-2008 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