VPTissue Reference Manual
SimWorker.h
Go to the documentation of this file.
1 #ifndef SESSION_SIM_WORKER_H_INCLUDED
2 #define SESSION_SIM_WORKER_H_INCLUDED
3 /*
4  * Copyright 2011-2016 Universiteit Antwerpen
5  *
6  * Licensed under the EUPL, Version 1.1 or as soon they will be approved by
7  * the European Commission - subsequent versions of the EUPL (the "Licence");
8  * You may not use this work except in compliance with the Licence.
9  * You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl5
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the Licence is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the Licence for the specific language governing
15  * permissions and limitations under the Licence.
16  */
22 #include "sim/SimInterface.h"
23 #include "sim/Sim.h"
24 
25 #include <QObject>
26 #include <QString>
27 #include <memory>
28 
29 namespace SimPT_Shell {
30 namespace Session {
31 
35 class SimWorker : public QObject
36 {
37  Q_OBJECT
38 public:
39  SimWorker(std::shared_ptr<SimPT_Sim::SimInterface>);
40 
41 public slots:
42  void Work();
43 
44 signals:
46  void Worked(QString);
47 
48 private:
49  std::shared_ptr<SimPT_Sim::SimInterface> m_sim;
50 };
51 
52 } // namespace
53 } // namespace
54 
55 #endif // end_of_include_guard
Simulator interface.
void Worked(QString)
Argument is status message produced by simulation step.
Namespace for SimPT shell package.
Definition: Client.cpp:50
Utility for running simulation in a separate thread.
Definition: SimWorker.h:35
Sim, the actual simulator.
see the online Qt documentation