#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) | |
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.
| virtual ml::BackgroundTask::BackgroundTask::Observer::~Observer | ( | ) | [inline, virtual] |
| virtual void ml::BackgroundTask::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::BackgroundTask::Observer::statusChanged | ( | BackgroundTask * | task, | |
| double | elapsedSeconds, | |||
| BackgroundTask::Status | status | |||
| ) | [pure virtual] |
called when the status has changed
| virtual void ml::BackgroundTask::BackgroundTask::Observer::statusStringChanged | ( | BackgroundTask * | task, | |
| double | elapsedSeconds, | |||
| const std::string & | status | |||
| ) | [pure virtual] |
called when the status string has changed
1.5.8