MeVisLab Toolbox Reference
|
Abstract interface to observe the BackgroundTask. More...
#include <mlBackgroundTask.h>
Public Member Functions | |
virtual | ~Observer () |
virtual destructor | |
virtual void | statusChanged (BackgroundTask *task, double elapsedSeconds, BackgroundTask::Status status)=0 |
called when the status has changed | |
virtual void | statusStringChanged (BackgroundTask *task, double elapsedSeconds, const std::string &status)=0 |
called when the status string has changed | |
virtual void | logMessage (BackgroundTask *task, double elapsedSeconds, const std::string &message)=0 |
called when a task logs additional messages (for verbose logging) | |
Abstract interface to observe the BackgroundTask.
Note: since the BackgroundTask is accessed from different threads, there is no guarantee from which thread the observer is called. It may even be called from multiple threads simultaneously. The main idea of having this Observer is to implement different logging facilities.
Definition at line 218 of file mlBackgroundTask.h.
|
inlinevirtual |
virtual destructor
Definition at line 222 of file mlBackgroundTask.h.
|
pure virtual |
called when a task logs additional messages (for verbose logging)
|
pure virtual |
called when the status has changed
|
pure virtual |
called when the status string has changed