Back to index

salome-gui  6.5.0
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
SESSION_EXPORT Protocol Reference

#include <SalomeApp_Engine_i.hxx>

Collaboration diagram for SESSION_EXPORT:
Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< std::string > ListOfFiles

Public Member Functions

 SalomeApp_Engine_i (const char *theComponentName)
 ~SalomeApp_Engine_i ()
SALOMEDS::TMPFile * Save (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
CORBA::Boolean Load (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theFile, const char *theURL, bool isMultiFile)
virtual Engines::TMPFile * DumpPython (CORBA::Object_ptr theStudy, CORBA::Boolean isPublished, CORBA::Boolean isMultiFile, CORBA::Boolean &isValidScript)
ListOfFiles GetListOfFiles (const int theStudyId)
void SetListOfFiles (const ListOfFiles &theListOfFiles, const int theStudyId)
SALOMEDS::TMPFile * SaveASCII (SALOMEDS::SComponent_ptr, const char *, bool)
CORBA::Boolean LoadASCII (SALOMEDS::SComponent_ptr, const SALOMEDS::TMPFile &, const char *, bool)
void Close (SALOMEDS::SComponent_ptr)
char * ComponentDataType ()
char * IORToLocalPersistentID (SALOMEDS::SObject_ptr, const char *, CORBA::Boolean, CORBA::Boolean)
char * LocalPersistentIDToIOR (SALOMEDS::SObject_ptr, const char *, CORBA::Boolean, CORBA::Boolean)
bool CanPublishInStudy (CORBA::Object_ptr)
SALOMEDS::SObject_ptr PublishInStudy (SALOMEDS::Study_ptr, SALOMEDS::SObject_ptr, CORBA::Object_ptr, const char *) throw (SALOME::SALOME_Exception)
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr)
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr, CORBA::Long &)
CORBA::Boolean CanPaste (const char *, CORBA::Long)
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &, CORBA::Long, SALOMEDS::SObject_ptr)
 Session_ServerCheck (QMutex *, QWaitCondition *)
virtual ~Session_ServerCheck ()
QString currentMessage ()
QString error ()
int currentStep ()
int totalSteps ()
 ServArg (int servType=0, int firstArg=0, int lastArg=0)
 Session_ServerLauncher ()
 Session_ServerLauncher (int argc, char **argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, QMutex *GUIMutex, QWaitCondition *ServerLaunch, QMutex *SessionMutex, QWaitCondition *SessionStarted)
virtual ~Session_ServerLauncher ()
void run ()
void KillAll ()
 Session_ServerThread ()
 Session_ServerThread (int argc, char **argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa)
virtual ~Session_ServerThread ()
void Init ()
 Session_SessionThread ()
 Session_SessionThread (int argc, char **argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, QMutex *GUIMutex, QWaitCondition *GUILauncher)
virtual ~Session_SessionThread ()
 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 Shutdown ()
 Shutdown session.
void NSregister ()
 Register the servant to Naming Service.
void NSunregister ()
 Unregister the servant from 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)

Static Public Member Functions

static std::string EngineIORForComponent (const char *theComponentName, bool toCreate)
static SalomeApp_Engine_iGetInstance (const char *theComponentName, bool toCreate)

Public Attributes

int _servType
int _firstArg
int _lastArg

Static Public Attributes

static const int NB_SRV_TYP
static const char * _serverTypes []

Protected Member Functions

virtual void run ()
void CheckArgs ()
void ActivateAll ()
void ActivateModuleCatalog (int argc, char **argv)
void ActivateSALOMEDS (int argc, char **argv)
void ActivateRegistry (int argc, char **argv)
void ActivateContainer (int argc, char **argv)
virtual void ActivateSession (int argc, char **argv)
void ActivateEngine (int argc, char **argv)
void ActivateContainerManager (int argc, char **argv)
virtual void ActivateSession (int argc, char **argv)

Protected Attributes

SALOME_NamingService * _NS
 Naming service interface.
CORBA::Boolean _isGUI
int _runningStudies
PortableServer::POA_var _poa
bool _isShuttingDown

Private Types

typedef std::map< int,
ListOfFiles
MapOfListOfFiles

Private Member Functions

void setStep (const int)
void setError (const QString &msg)

Static Private Member Functions

static CORBA::ORB_var orb ()
static PortableServer::POA_var poa ()
static SALOME_NamingService * namingService ()
static CORBA::Object_ptr engineForComponent (const char *theComponentName, bool toCreate)

Private Attributes

MapOfListOfFiles myMap
std::string myComponentName
QMutex myDataMutex
 data mutex
QMutex * myMutex
 splash mutex
QWaitCondition * myWC
 splash wait condition
bool myCheckCppContainer
 flag : check C++ container
bool myCheckPyContainer
 flag : check Python container
bool myCheckSVContainer
 flag : check supervision container
int myAttempts
 number of attemtps to get response from server
int myDelay
 delay between attempts in microseconds
int myCurrentStep
 current step
QString myMessage
 current information message
QString myError
 error message
int _argc
char ** _argv
CORBA::ORB_var _orb
PortableServer::POA_var _root_poa
QMutex * _GUIMutex
QWaitCondition * _ServerLaunch
QMutex * _SessionMutex
QWaitCondition * _SessionStarted
std::list< ServArg_argServToLaunch
std::vector< std::string > _argCopy
std::list< Session_ServerThread * > _serverThreads
QWaitCondition * _GUILauncher

Friends

class Locker

Detailed Description

Definition at line 42 of file SalomeApp_Engine_i.hxx.


Member Typedef Documentation

typedef std::vector<std::string> SESSION_EXPORT::ListOfFiles

Definition at line 64 of file SalomeApp_Engine_i.hxx.

typedef std::map<int, ListOfFiles> SESSION_EXPORT::MapOfListOfFiles [private]

Definition at line 99 of file SalomeApp_Engine_i.hxx.


Constructor & Destructor Documentation

virtual SESSION_EXPORT::~Session_ServerCheck ( ) [virtual]

Member Function Documentation

void SESSION_EXPORT::ActivateContainer ( int  argc,
char **  argv 
) [protected]
void SESSION_EXPORT::ActivateContainerManager ( int  argc,
char **  argv 
) [protected]
void SESSION_EXPORT::ActivateEngine ( int  argc,
char **  argv 
) [protected]
void SESSION_EXPORT::ActivateModuleCatalog ( int  argc,
char **  argv 
) [protected]
void SESSION_EXPORT::ActivateRegistry ( int  argc,
char **  argv 
) [protected]
void SESSION_EXPORT::ActivateSALOMEDS ( int  argc,
char **  argv 
) [protected]
virtual void SESSION_EXPORT::ActivateSession ( int  argc,
char **  argv 
) [protected, virtual]
virtual void SESSION_EXPORT::ActivateSession ( int  argc,
char **  argv 
) [protected, virtual]
CORBA::Boolean SESSION_EXPORT::CanCopy ( SALOMEDS::SObject_ptr  ) [inline]

Definition at line 86 of file SalomeApp_Engine_i.hxx.

{return 0;}
CORBA::Boolean SESSION_EXPORT::CanPaste ( const char *  ,
CORBA::Long   
) [inline]

Definition at line 88 of file SalomeApp_Engine_i.hxx.

{return 0;}
bool SESSION_EXPORT::CanPublishInStudy ( CORBA::Object_ptr  ) [inline]

Definition at line 84 of file SalomeApp_Engine_i.hxx.

{return 0;}
void SESSION_EXPORT::Close ( SALOMEDS::SComponent_ptr  ) [inline]

Definition at line 80 of file SalomeApp_Engine_i.hxx.

{}
SALOMEDS::TMPFile* SESSION_EXPORT::CopyFrom ( SALOMEDS::SObject_ptr  ,
CORBA::Long &   
) [inline]

Definition at line 87 of file SalomeApp_Engine_i.hxx.

{return 0;}
virtual Engines::TMPFile* SESSION_EXPORT::DumpPython ( CORBA::Object_ptr  theStudy,
CORBA::Boolean  isPublished,
CORBA::Boolean  isMultiFile,
CORBA::Boolean &  isValidScript 
) [virtual]
void SESSION_EXPORT::emitMessage ( const char *  theMessage)

Emit a qt signal from the session GUI desktop window.

void SESSION_EXPORT::emitMessageOneWay ( const char *  theMessage)
static CORBA::Object_ptr SESSION_EXPORT::engineForComponent ( const char *  theComponentName,
bool  toCreate 
) [static, private]
static std::string SESSION_EXPORT::EngineIORForComponent ( const char *  theComponentName,
bool  toCreate 
) [static]
QString SESSION_EXPORT::error ( )
Engines::EngineComponent_ptr SESSION_EXPORT::GetComponent ( const char *  theLibraryName)

Return VISU component.

static SalomeApp_Engine_i* SESSION_EXPORT::GetInstance ( const char *  theComponentName,
bool  toCreate 
) [static]

Launch Graphical User Interface.

ListOfFiles SESSION_EXPORT::GetListOfFiles ( const int  theStudyId)
CORBA::Long SESSION_EXPORT::getPID ( )
SALOME::StatSession SESSION_EXPORT::GetStatSession ( )

Get session state.

char* SESSION_EXPORT::IORToLocalPersistentID ( SALOMEDS::SObject_ptr  ,
const char *  ,
CORBA::Boolean  ,
CORBA::Boolean   
) [inline]

Definition at line 82 of file SalomeApp_Engine_i.hxx.

{return 0;}
CORBA::Boolean SESSION_EXPORT::Load ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theFile,
const char *  theURL,
bool  isMultiFile 
)
CORBA::Boolean SESSION_EXPORT::LoadASCII ( SALOMEDS::SComponent_ptr  ,
const SALOMEDS::TMPFile &  ,
const char *  ,
bool   
) [inline]

Definition at line 79 of file SalomeApp_Engine_i.hxx.

{return 0;}
char* SESSION_EXPORT::LocalPersistentIDToIOR ( SALOMEDS::SObject_ptr  ,
const char *  ,
CORBA::Boolean  ,
CORBA::Boolean   
) [inline]

Definition at line 83 of file SalomeApp_Engine_i.hxx.

{return 0;}
static SALOME_NamingService* SESSION_EXPORT::namingService ( ) [static, private]

Register the servant to Naming Service.

Unregister the servant from Naming Service.

static CORBA::ORB_var SESSION_EXPORT::orb ( ) [static, private]
SALOMEDS::SObject_ptr SESSION_EXPORT::PasteInto ( const SALOMEDS::TMPFile &  ,
CORBA::Long  ,
SALOMEDS::SObject_ptr   
) [inline]

Definition at line 89 of file SalomeApp_Engine_i.hxx.

{return 0;}
void SESSION_EXPORT::ping ( ) [inline]

Definition at line 73 of file Session_Session_i.hxx.

{};
static PortableServer::POA_var SESSION_EXPORT::poa ( ) [static, private]
SALOMEDS::SObject_ptr SESSION_EXPORT::PublishInStudy ( SALOMEDS::Study_ptr  ,
SALOMEDS::SObject_ptr  ,
CORBA::Object_ptr  ,
const char *   
) throw (SALOME::SALOME_Exception) [inline]

Definition at line 85 of file SalomeApp_Engine_i.hxx.

{return 0;}
bool SESSION_EXPORT::restoreVisualState ( CORBA::Long  theSavePoint)

Restors a visual state of the study at theSavePoint.

virtual void SESSION_EXPORT::run ( ) [protected, virtual]
SESSION_EXPORT::SALOME_Session_i ( int  argc,
char **  argv,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
QMutex *  GUIMutex,
QWaitCondition *  GUILauncher 
)
SESSION_EXPORT::SalomeApp_Engine_i ( const char *  theComponentName)
SALOMEDS::TMPFile* SESSION_EXPORT::Save ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)
SALOMEDS::TMPFile* SESSION_EXPORT::SaveASCII ( SALOMEDS::SComponent_ptr  ,
const char *  ,
bool   
) [inline]

Definition at line 78 of file SalomeApp_Engine_i.hxx.

{return 0;}
SESSION_EXPORT::ServArg ( int  servType = 0,
int  firstArg = 0,
int  lastArg = 0 
) [inline]
SESSION_EXPORT::Session_ServerCheck ( QMutex *  ,
QWaitCondition *   
)
SESSION_EXPORT::Session_ServerLauncher ( int  argc,
char **  argv,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
QMutex *  GUIMutex,
QWaitCondition *  ServerLaunch,
QMutex *  SessionMutex,
QWaitCondition *  SessionStarted 
)
SESSION_EXPORT::Session_ServerThread ( int  argc,
char **  argv,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa 
)

Definition at line 75 of file Session_ServerThread.hxx.

{}
SESSION_EXPORT::Session_SessionThread ( int  argc,
char **  argv,
CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
QMutex *  GUIMutex,
QWaitCondition *  GUILauncher 
)
void SESSION_EXPORT::setError ( const QString &  msg) [private]
void SESSION_EXPORT::SetListOfFiles ( const ListOfFiles theListOfFiles,
const int  theStudyId 
)
void SESSION_EXPORT::setStep ( const int  ) [private]

Shutdown session.

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


Friends And Related Function Documentation

friend class Locker [friend]

Definition at line 71 of file Session_ServerCheck.hxx.


Member Data Documentation

int SESSION_EXPORT::_argc [private]

Definition at line 77 of file Session_ServerLauncher.hxx.

std::vector<std::string> SESSION_EXPORT::_argCopy [private]

Definition at line 86 of file Session_ServerLauncher.hxx.

Definition at line 85 of file Session_ServerLauncher.hxx.

char ** SESSION_EXPORT::_argv [private]

Definition at line 78 of file Session_ServerLauncher.hxx.

Definition at line 42 of file Session_ServerLauncher.hxx.

QWaitCondition * SESSION_EXPORT::_GUILauncher [private]

Definition at line 88 of file Session_ServerThread.hxx.

QMutex * SESSION_EXPORT::_GUIMutex [private]

Definition at line 81 of file Session_ServerLauncher.hxx.

CORBA::Boolean SESSION_EXPORT::_isGUI [protected]

Definition at line 91 of file Session_Session_i.hxx.

Definition at line 97 of file Session_Session_i.hxx.

Definition at line 43 of file Session_ServerLauncher.hxx.

SALOME_NamingService * SESSION_EXPORT::_NS [protected]

Naming service interface.

Definition at line 66 of file Session_ServerThread.hxx.

CORBA::ORB_var SESSION_EXPORT::_orb [private]

Definition at line 79 of file Session_ServerLauncher.hxx.

PortableServer::POA_var SESSION_EXPORT::_poa [protected]

Definition at line 96 of file Session_Session_i.hxx.

PortableServer::POA_var SESSION_EXPORT::_root_poa [private]

Definition at line 80 of file Session_ServerLauncher.hxx.

Definition at line 94 of file Session_Session_i.hxx.

QWaitCondition* SESSION_EXPORT::_ServerLaunch [private]

Definition at line 82 of file Session_ServerLauncher.hxx.

Definition at line 87 of file Session_ServerLauncher.hxx.

const char* SESSION_EXPORT::_serverTypes[] [static]

Definition at line 43 of file Session_ServerThread.hxx.

Definition at line 41 of file Session_ServerLauncher.hxx.

QMutex* SESSION_EXPORT::_SessionMutex [private]

Definition at line 83 of file Session_ServerLauncher.hxx.

QWaitCondition* SESSION_EXPORT::_SessionStarted [private]

Definition at line 84 of file Session_ServerLauncher.hxx.

number of attemtps to get response from server

Definition at line 65 of file Session_ServerCheck.hxx.

flag : check C++ container

Definition at line 62 of file Session_ServerCheck.hxx.

flag : check Python container

Definition at line 63 of file Session_ServerCheck.hxx.

flag : check supervision container

Definition at line 64 of file Session_ServerCheck.hxx.

std::string SESSION_EXPORT::myComponentName [private]

Definition at line 102 of file SalomeApp_Engine_i.hxx.

current step

Definition at line 67 of file Session_ServerCheck.hxx.

QMutex SESSION_EXPORT::myDataMutex [private]

data mutex

Definition at line 58 of file Session_ServerCheck.hxx.

int SESSION_EXPORT::myDelay [private]

delay between attempts in microseconds

Definition at line 66 of file Session_ServerCheck.hxx.

QString SESSION_EXPORT::myError [private]

error message

Definition at line 69 of file Session_ServerCheck.hxx.

Definition at line 100 of file SalomeApp_Engine_i.hxx.

QString SESSION_EXPORT::myMessage [private]

current information message

Definition at line 68 of file Session_ServerCheck.hxx.

QMutex* SESSION_EXPORT::myMutex [private]

splash mutex

Definition at line 59 of file Session_ServerCheck.hxx.

QWaitCondition* SESSION_EXPORT::myWC [private]

splash wait condition

Definition at line 60 of file Session_ServerCheck.hxx.

const int SESSION_EXPORT::NB_SRV_TYP [static]

Definition at line 42 of file Session_ServerThread.hxx.


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