MeVisLab Toolbox Reference
ml::BackgroundTask::Observer Class Referenceabstract

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)
 

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

Constructor & Destructor Documentation

◆ ~Observer()

virtual ml::BackgroundTask::Observer::~Observer ( )
inlinevirtual

virtual destructor

Definition at line 222 of file mlBackgroundTask.h.

Member Function Documentation

◆ logMessage()

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)

◆ statusChanged()

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

called when the status has changed

◆ statusStringChanged()

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: