SpikeStream Library
0.2
|
#include <SpikeStreamThread.h>
Public Member Functions | |
SpikeStreamThread () | |
virtual | ~SpikeStreamThread () |
void | clearError () |
virtual QString | getErrorMessage () |
virtual bool | isError () |
virtual void | run ()=0 |
virtual void | stop () |
Protected Member Functions | |
void | setError (const QString &errorMessage) |
Protected Attributes | |
QString | errorMessage |
bool | stopThread |
bool | error |
Implements basic functionality used by all SpikeStream threads
Definition at line 10 of file SpikeStreamThread.h.
Constructor
Definition at line 5 of file SpikeStreamThread.cpp.
SpikeStreamThread::~SpikeStreamThread | ( | ) | [virtual] |
Destructor
Definition at line 10 of file SpikeStreamThread.cpp.
void SpikeStreamThread::clearError | ( | ) |
Clears error state and message
Definition at line 19 of file SpikeStreamThread.cpp.
QString SpikeStreamThread::getErrorMessage | ( | ) | [virtual] |
Returns the error message
Definition at line 26 of file SpikeStreamThread.cpp.
bool SpikeStreamThread::isError | ( | ) | [virtual] |
Returns true if an error has occurred
Definition at line 31 of file SpikeStreamThread.cpp.
virtual void spikestream::SpikeStreamThread::run | ( | ) | [pure virtual] |
void SpikeStreamThread::setError | ( | const QString & | errorMessage | ) | [protected] |
Puts the thread into the error state with the provided error message
Definition at line 47 of file SpikeStreamThread.cpp.
void SpikeStreamThread::stop | ( | ) | [virtual] |
Stops the thread running
Definition at line 37 of file SpikeStreamThread.cpp.
bool spikestream::SpikeStreamThread::error [protected] |
Set to true when an error has occurred
Definition at line 32 of file SpikeStreamThread.h.
QString spikestream::SpikeStreamThread::errorMessage [protected] |
Message associated with an error
Definition at line 26 of file SpikeStreamThread.h.
bool spikestream::SpikeStreamThread::stopThread [protected] |
Used to cancel the operation
Definition at line 29 of file SpikeStreamThread.h.