Nebula
Loading...
Searching...
No Matches
Messaging::StaticMessageHandler Class Reference

#include <staticmessagehandler.h>

Detailed Description

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
 

Member Function Documentation

◆ Dispatch() [1/2]

template<>
void Messaging::StaticMessageHandler::Dispatch ( const Ptr< Core::RefCounted > & obj,
const Ptr< Message > & msg )

◆ Dispatch() [2/2]

template<class OBJTYPE >
static void Messaging::StaticMessageHandler::Dispatch ( const Ptr< OBJTYPE > & object,
const Ptr< Message > & msg )
static

dispatch a message to handling method

◆ Handle() [1/2]

template<class MSGTYPE >
static void Messaging::StaticMessageHandler::Handle ( const Ptr< MSGTYPE > & msg)
static

a handler method without object association

◆ Handle() [2/2]

template<class OBJTYPE , class MSGTYPE >
static void Messaging::StaticMessageHandler::Handle ( const Ptr< OBJTYPE > & object,
const Ptr< MSGTYPE > & msg )
static

a handler method with object association


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