1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 // SALOME Session : implementation of Session_ServerThread.hxx
24 // File : Session_ServerThread.hxx
25 // Author : Paul RASCLE, EDF
27 #ifndef _SESSION_SERVERTHREAD_HXX_
28 #define _SESSION_SERVERTHREAD_HXX_
30 #include "SALOME_Session.hxx"
32 #include <omniORB4/CORBA.h>
35 void WaitForServerReadiness(std::string serverName);
37 class SALOME_NamingService;
38 class Engines_Container_i;
40 class SESSION_EXPORT Session_ServerThread
43 static const int NB_SRV_TYP;
44 static const char* _serverTypes[];
46 Session_ServerThread();
47 Session_ServerThread(int argc,
50 PortableServer::POA_ptr poa);
51 virtual ~Session_ServerThread();
55 void ActivateModuleCatalog ( int argc, char ** argv );
56 void ActivateSALOMEDS ( int argc, char ** argv );
57 void ActivateRegistry ( int argc, char ** argv );
58 void ActivateContainer ( int argc, char ** argv );
59 virtual void ActivateSession ( int argc, char ** argv );
60 void ActivateEngine ( int argc, char ** argv );
61 void ActivateContainerManager( int argc, char ** argv );
67 PortableServer::POA_var _root_poa;
68 SALOME_NamingService * _NS;
69 Engines_Container_i* _container;
75 class SESSION_EXPORT Session_SessionThread : public Session_ServerThread
78 Session_SessionThread() {}
79 Session_SessionThread(int argc,
82 PortableServer::POA_ptr poa,
84 QWaitCondition* GUILauncher);
85 virtual ~Session_SessionThread();
88 virtual void ActivateSession ( int argc, char ** argv );
91 QWaitCondition* _GUILauncher;