Diana Software
QBaseThread.hh
Go to the documentation of this file.
1 
2 #ifndef _Q_BASE_THREAD_HH_
3 #define _Q_BASE_THREAD_HH_
4 
5 #include <cstddef>
6 class QError;
7 
21 {
22 public:
23  QBaseThread(): fErr(NULL), fControlFlag(NULL) {}
24  virtual ~QBaseThread() {}
25  void SetError(QError* err) { fErr = err; }
26  void SetControlFlag(const int* flag) { fControlFlag = flag; }
28  virtual void operator()() = 0;
29 
30 protected:
32  const int* fControlFlag;
33 };
34 #endif
err
Definition: CheckOF.C:114
base abstract class for running a separate thread
Definition: QBaseThread.hh:21
void SetError(QError *err)
Definition: QBaseThread.hh:25
void SetControlFlag(const int *flag)
Definition: QBaseThread.hh:26
virtual void operator()()=0
const int * fControlFlag
Definition: QBaseThread.hh:32
virtual ~QBaseThread()
Definition: QBaseThread.hh:24
QError * fErr
Definition: QBaseThread.hh:31
error class with error type and description
Definition: QError.hh:115