Diana Software
pkg
threadwrapper
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
20
class
QBaseThread
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
:
31
QError
*
fErr
;
32
const
int
*
fControlFlag
;
33
};
34
#endif
err
err
Definition:
CheckOF.C:114
QBaseThread
base abstract class for running a separate thread
Definition:
QBaseThread.hh:21
QBaseThread::SetError
void SetError(QError *err)
Definition:
QBaseThread.hh:25
QBaseThread::QBaseThread
QBaseThread()
Definition:
QBaseThread.hh:23
QBaseThread::SetControlFlag
void SetControlFlag(const int *flag)
Definition:
QBaseThread.hh:26
QBaseThread::operator()
virtual void operator()()=0
QBaseThread::fControlFlag
const int * fControlFlag
Definition:
QBaseThread.hh:32
QBaseThread::~QBaseThread
virtual ~QBaseThread()
Definition:
QBaseThread.hh:24
QBaseThread::fErr
QError * fErr
Definition:
QBaseThread.hh:31
QError
error class with error type and description
Definition:
QError.hh:115
Generated by
1.9.1