The Nebula Device 3: Messaging::DelegateTable Class Reference

The Nebula Device 3

Messaging::DelegateTable Class Reference

#include <delegatetable.h>


Detailed Description

Associates message ids with handler delegates. One message id may be associated with any number of handler functions. The order of handler functions for one message id will be preserved.

(C) 2008 Radon Labs GmbH

Public Member Functions

template<class CLASS, void(CLASS::*)(const Ptr< Message > &) METHOD>
void Bind (const Id &msgId, CLASS *obj)
 bind a message id to a method call
bool Invoke (const Ptr< Message > &msg)
 invoke delegates bound to msg, returns false if no delegates bound to msg id