Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef _SESSION_SERVERTHREAD_HXX_
00030 #define _SESSION_SERVERTHREAD_HXX_
00031
00032 #include "SALOME_Session.hxx"
00033
00034 #include <CORBA.h>
00035 #include <string>
00036
00037 using namespace std;
00038
00039 void WaitForServerReadiness(string serverName);
00040
00041 class SALOME_NamingService;
00042
00043 class SESSION_EXPORT Session_ServerThread
00044 {
00045 public:
00046 static const int NB_SRV_TYP;
00047 static const char* _serverTypes[];
00048
00049 Session_ServerThread();
00050 Session_ServerThread(int argc,
00051 char ** argv,
00052 CORBA::ORB_ptr orb,
00053 PortableServer::POA_ptr poa);
00054 virtual ~Session_ServerThread();
00055 void Init();
00056 protected:
00057 void ActivateModuleCatalog ( int argc, char ** argv );
00058 void ActivateSALOMEDS ( int argc, char ** argv );
00059 void ActivateRegistry ( int argc, char ** argv );
00060 void ActivateContainer ( int argc, char ** argv );
00061 virtual void ActivateSession ( int argc, char ** argv );
00062 void ActivateEngine ( int argc, char ** argv );
00063 void ActivateContainerManager( int argc, char ** argv );
00064 protected:
00065 int _argc;
00066 char ** _argv;
00067 int _servType;
00068 CORBA::ORB_var _orb;
00069 PortableServer::POA_var _root_poa;
00070 SALOME_NamingService * _NS;
00071 };
00072
00073 class QMutex;
00074 class QWaitCondition;
00075
00076 class SESSION_EXPORT Session_SessionThread : public Session_ServerThread
00077 {
00078 public:
00079 Session_SessionThread() {}
00080 Session_SessionThread(int argc,
00081 char** argv,
00082 CORBA::ORB_ptr orb,
00083 PortableServer::POA_ptr poa,
00084 QMutex* GUIMutex,
00085 QWaitCondition* GUILauncher);
00086 virtual ~Session_SessionThread();
00087
00088 protected:
00089 virtual void ActivateSession ( int argc, char ** argv );
00090 private:
00091 QMutex* _GUIMutex;
00092 QWaitCondition* _GUILauncher;
00093 };
00094
00095 #endif
00096