MeVisLab Toolbox Reference
ml::BackgroundTaskFinishedMessage Class Reference

#include <mlBackgroundTaskMessages.h>

Inheritance diagram for ml::BackgroundTaskFinishedMessage:
ml::BackgroundTaskMessage

Public Member Functions

 BackgroundTaskFinishedMessage (BackgroundTask *task)
 
void execute () override
 Executes message when it is delivered.
 
- Public Member Functions inherited from ml::BackgroundTaskMessage
 BackgroundTaskMessage ()
 
virtual ~BackgroundTaskMessage ()
 
void setSender (BackgroundTask *task)
 Sets who sends the message. Default is NULL and this means that the message's sender is not a BackgroundTask.
 
BackgroundTasksender ()
 Returns the task from which the message originates.
 
void setReceiver (BackgroundTaskMessageReceiver *receiverArg)
 Sets who receives the message. Default is NULL.
 
BackgroundTaskMessageReceiverreceiver ()
 Returns the object which receives the message. Default is NULL.
 
virtual void executeSynchronous ()
 Executes message when it is delivered and the task runs synchronously.
 
virtual bool finishedProcessing ()
 Returns whether the message needs further processing or if it may be deleted.
 
virtual void taskWillBeDestroyed ()
 This needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on its way.
 

Detailed Description

Definition at line 27 of file mlBackgroundTaskMessages.h.

Constructor & Destructor Documentation

◆ BackgroundTaskFinishedMessage()

ml::BackgroundTaskFinishedMessage::BackgroundTaskFinishedMessage ( BackgroundTask * task)
inline

Member Function Documentation

◆ execute()

void ml::BackgroundTaskFinishedMessage::execute ( )
overridevirtual

Executes message when it is delivered.

Reimplement this in subclasses.

Implements ml::BackgroundTaskMessage.


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