MeVisLabToolboxReference
ml::BackgroundTask::Observer Class Reference

Abstract interface to observe the BackgroundTask. More...

#include <mlBackgroundTask.h>

List of all members.

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)

Detailed Description

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 214 of file mlBackgroundTask.h.


Constructor & Destructor Documentation

virtual ml::BackgroundTask::Observer::~Observer ( ) [inline, virtual]

virtual destructor

Definition at line 218 of file mlBackgroundTask.h.


Member Function Documentation

virtual void ml::BackgroundTask::Observer::logMessage ( BackgroundTask task,
double  elapsedSeconds,
const std::string &  message 
) [pure virtual]

called when a task logs additional messages (for verbose logging)

virtual void ml::BackgroundTask::Observer::statusChanged ( BackgroundTask task,
double  elapsedSeconds,
BackgroundTask::Status  status 
) [pure virtual]

called when the status has changed

virtual void ml::BackgroundTask::Observer::statusStringChanged ( BackgroundTask task,
double  elapsedSeconds,
const std::string &  status 
) [pure virtual]

called when the status string has changed


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