gepetto-viewer-corba  6.0.0
Corba server for gepetto-viewer
omniorbthread.hh
Go to the documentation of this file.
1 // Copyright (c) 2015-2018, LAAS-CNRS
2 // Authors: Joseph Mirabel (joseph.mirabel@laas.fr)
3 //
4 // This file is part of gepetto-viewer-corba.
5 // gepetto-viewer-corba is free software: you can redistribute it
6 // and/or modify it under the terms of the GNU Lesser General Public
7 // License as published by the Free Software Foundation, either version
8 // 3 of the License, or (at your option) any later version.
9 //
10 // gepetto-viewer-corba is distributed in the hope that it will be
11 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 // General Lesser Public License for more details. You should have
14 // received a copy of the GNU Lesser General Public License along with
15 // gepetto-viewer-corba. If not, see <http://www.gnu.org/licenses/>.
16 
17 #ifndef GEPETTO_GUI_OMNIORBTHREAD_HH
18 #define GEPETTO_GUI_OMNIORBTHREAD_HH
19 
20 #include <assert.h>
21 
22 #include <QElapsedTimer>
23 #include <QMutex>
24 #include <QThread>
25 #include <QTimerEvent>
26 
27 #include "../../src/server.hh"
28 #include "gepetto/gui/fwd.hh"
29 
30 class ViewerServerProcess : public QThread {
31  Q_OBJECT
32 
33  public:
34  ViewerServerProcess(gepetto::viewer::corba::Server* server,
35  QObject* parent = NULL);
36 
38 
39  void shutdown();
40 
41  protected:
42  void run();
43 
44  private:
45  gepetto::viewer::corba::Server* server_;
46 };
47 
48 #endif // GEPETTO_GUI_OMNIORBTHREAD_HH
Definition: omniorbthread.hh:30
ViewerServerProcess(gepetto::viewer::corba::Server *server, QObject *parent=NULL)