MeVisLabToolboxReference
ml::BackgroundTaskMessage Class Referenceabstract

The base class of all background messages. More...

#include <mlBackgroundTaskMessage.h>

Inheritance diagram for ml::BackgroundTaskMessage:
ml::BackgroundTaskFinishedMessage ml::BackgroundTaskMethodCallMessage< Object, Method, ArgumentList > ml::BackgroundTaskMLGetTileBaseMessage ml::BackgroundTaskMLGetTileResultMessage ml::BackgroundTaskMLProcessAllPagesResultMessage ml::BackgroundTaskMLGetTileMessage ml::BackgroundTaskMLProcessAllPagesMessage

Public Member Functions

 BackgroundTaskMessage ()
 
virtual ~BackgroundTaskMessage ()
 
void setSender (BackgroundTask *task)
 set who sends the message (default is NULL and means that the message's sender is not a BackgroundTask) More...
 
BackgroundTasksender ()
 returns the task from which the message originates More...
 
void setReceiver (BackgroundTaskMessageReceiver *receiverArg)
 set who receives the message (default is NULL) More...
 
BackgroundTaskMessageReceiverreceiver ()
 returns the object which receives the message (default is NULL) More...
 
virtual void execute ()=0
 execute message when it is delivered (reimplement in subclasses) More...
 
virtual void executeSynchronous ()
 execute message when it is delivered and the task runs synchronous, the default implementation just calls the execute() method (reimplement in subclasses). More...
 
virtual bool finishedProcessing ()
 tells if the message needs further processing or if it may be deleted if true is returned, the message is placed to another processing queue and finishedProcessing() is called in regular intervals More...
 
virtual void taskWillBeDestroyed ()
 this needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on it's way More...
 

Detailed Description

The base class of all background messages.

Definition at line 41 of file mlBackgroundTaskMessage.h.

Constructor & Destructor Documentation

ml::BackgroundTaskMessage::BackgroundTaskMessage ( )
virtual ml::BackgroundTaskMessage::~BackgroundTaskMessage ( )
inlinevirtual

Definition at line 44 of file mlBackgroundTaskMessage.h.

Member Function Documentation

virtual void ml::BackgroundTaskMessage::executeSynchronous ( )
inlinevirtual

execute message when it is delivered and the task runs synchronous, the default implementation just calls the execute() method (reimplement in subclasses).

Reimplemented in ml::BackgroundTaskMLGetTileBaseMessage.

Definition at line 63 of file mlBackgroundTaskMessage.h.

virtual bool ml::BackgroundTaskMessage::finishedProcessing ( )
inlinevirtual

tells if the message needs further processing or if it may be deleted if true is returned, the message is placed to another processing queue and finishedProcessing() is called in regular intervals

Reimplemented in ml::BackgroundTaskMLGetTileBaseMessage.

Definition at line 68 of file mlBackgroundTaskMessage.h.

BackgroundTaskMessageReceiver* ml::BackgroundTaskMessage::receiver ( )
inline

returns the object which receives the message (default is NULL)

Definition at line 56 of file mlBackgroundTaskMessage.h.

BackgroundTask* ml::BackgroundTaskMessage::sender ( )
inline

returns the task from which the message originates

Definition at line 50 of file mlBackgroundTaskMessage.h.

void ml::BackgroundTaskMessage::setReceiver ( BackgroundTaskMessageReceiver receiverArg)
inline

set who receives the message (default is NULL)

Definition at line 53 of file mlBackgroundTaskMessage.h.

void ml::BackgroundTaskMessage::setSender ( BackgroundTask task)
inline

set who sends the message (default is NULL and means that the message's sender is not a BackgroundTask)

Definition at line 47 of file mlBackgroundTaskMessage.h.

Referenced by ml::BackgroundTaskFinishedMessage::BackgroundTaskFinishedMessage().

virtual void ml::BackgroundTaskMessage::taskWillBeDestroyed ( )
virtual

this needs to be implemented if the message uses finishedProcessing() and the task is finished while a message is still on it's way

Reimplemented in ml::BackgroundTaskMLGetTileBaseMessage.


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