The MessageMethod class delivers a message of a specified type to a class method, see MessageThread.
More...
#include <murl_util_message_callback.h>
template<class MessageClass, class ObjectClass>
class Murl::Util::MessageMethod< MessageClass, ObjectClass >
The MessageMethod class delivers a message of a specified type to a class method, see MessageThread.
◆ MessageMethod()
template<class MessageClass , class ObjectClass >
The constructor.
- Template Parameters
-
MessageClass | The type of the message class. |
ObjectClass | The type of the class to call the method. |
- Parameters
-
instance | The instance pointer of the class to call the method. |
method | The method pointer to call. |
◆ Execute()
template<class MessageClass , class ObjectClass >
The callback to deliver a message.
The method pointer of the ObjectClass instance which was passed to the constructor is called with the message parameter casted to the MessageClass type.
- Parameters
-
message | The message to deliver. |
- Returns
- true if successful.
Implements Murl::Util::MessageCallBack.
◆ mInstance
template<class MessageClass , class ObjectClass >
The instance pointer of the class to call.
◆ mMethod
template<class MessageClass , class ObjectClass >
The method pointer to call.
The documentation for this class was generated from the following file:
- murl_util_message_callback.h