Diana Software
Public Member Functions | Protected Attributes | List of all members
QBaseThread Class Referenceabstract

base abstract class for running a separate thread More...

Inheritance diagram for QBaseThread:
QDbWatchdogThread

Public Member Functions

 QBaseThread ()
 
virtual ~QBaseThread ()
 
void SetError (QError *err)
 
void SetControlFlag (const int *flag)
 
virtual void operator() ()=0
 

Protected Attributes

QErrorfErr
 
const int * fControlFlag
 

Detailed Description

base abstract class for running a separate thread

Author
Sergio Di Domizio

Child classes should implement operator()(). At the beginning of this method They should check that both fErr and fControlFlag are not NULL. The thread is supposed to run until fControlFlag is set to anything other than 0, or until an error occurs. In this latter case fErr should be set accordingly, and the thread must exit.

Definition at line 20 of file QBaseThread.hh.

Constructor & Destructor Documentation

◆ QBaseThread()

QBaseThread::QBaseThread ( )
inline

Definition at line 23 of file QBaseThread.hh.

◆ ~QBaseThread()

virtual QBaseThread::~QBaseThread ( )
inlinevirtual

Definition at line 24 of file QBaseThread.hh.

Member Function Documentation

◆ operator()()

virtual void QBaseThread::operator() ( )
pure virtual

this is where the thread is run

Implemented in QDbWatchdogThread.

◆ SetControlFlag()

void QBaseThread::SetControlFlag ( const int *  flag)
inline

Definition at line 26 of file QBaseThread.hh.

References fControlFlag.

Referenced by QDbWatchdogThreadHandler::Start().

◆ SetError()

void QBaseThread::SetError ( QError err)
inline

Definition at line 25 of file QBaseThread.hh.

References err, and fErr.

Referenced by QDbWatchdogThreadHandler::Start().

Member Data Documentation

◆ fControlFlag

const int* QBaseThread::fControlFlag
protected

Definition at line 32 of file QBaseThread.hh.

Referenced by QDbWatchdogThread::operator()(), and SetControlFlag().

◆ fErr

QError* QBaseThread::fErr
protected

Definition at line 31 of file QBaseThread.hh.

Referenced by QDbWatchdogThread::operator()(), and SetError().


The documentation for this class was generated from the following file: