Nebula
|
#include <staticmessagehandler.h>
Implements a simple, static message handler helper class.
This separates the tedious message handling code into a separate class, so that the main class doesn't have to be polluted with message handling code.
(C) 2010 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
Public Member Functions | |
template<> | |
void | Dispatch (const Ptr< Core::RefCounted > &obj, const Ptr< Message > &msg) |
Static Public Member Functions | |
template<class OBJTYPE > | |
static void | Dispatch (const Ptr< OBJTYPE > &object, const Ptr< Message > &msg) |
dispatch a message to handling method | |
template<class OBJTYPE , class MSGTYPE > | |
static void | Handle (const Ptr< OBJTYPE > &object, const Ptr< MSGTYPE > &msg) |
a handler method with object association | |
template<class MSGTYPE > | |
static void | Handle (const Ptr< MSGTYPE > &msg) |
a handler method without object association | |
void Messaging::StaticMessageHandler::Dispatch | ( | const Ptr< Core::RefCounted > & | obj, |
const Ptr< Message > & | msg ) |
|
static |
dispatch a message to handling method
|
static |
a handler method without object association
|
static |
a handler method with object association