1 //=============================================================================
2 // File : SALOME_Session.idl
3 // Created : mar jun 19 09:15:07 CEST 2001
4 // Author : Paul RASCLE, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
11 //***//#include "VISU_Gen.idl"
12 #include "SALOME_Component.idl"
13 /*! \defgroup Kernel SALOME KERNEL module
18 This package contains interfaces used for management of the session in %SALOME application.
22 /*! \brief State of the session
24 This enumeration contains values defining the state of the session
27 enum SessionState {asleep, running} ;
29 /*! \brief %Session State and Statistics
32 This struct contains a field list with general information about the session
37 /*! \brief State of the session
40 * -# asleep : no running study
41 * -# running : one or more running studies
44 /*! Number of running studies
46 short runningStudies ;
47 /*! It is True if GUI is active in the session
51 /*! \brief Interface of the session
53 The %session Server launches and stops GUI (Graphical User Interface).
54 The %session can be active without GUI (It can contain one or more running studies)
60 This exception is raised when trying to stop the %session with active GUI
62 exception GUIActive {} ;
64 This exception is raised when trying to stop the %session with a number of running studies.
66 exception RunningStudies {} ;
69 Launches GUI in the session
72 //***// VISU::VISU_Gen GetVisuGen();
73 Engines::Component GetVisuComponent();
76 Stops the %Session (It must be idle)
78 void StopSession() raises(GUIActive, RunningStudies) ;
83 StatSession GetStatSession() ;
85 Determines whether the server has already been loaded or not.