#include <ClientMessageEvent.h>
Inheritance diagram for CODEX_KeyService::ClientMessageEvent< MT >:


Public Member Functions | |
| ClientMessageEvent (CODEX_Events::Activity *source, ClientMessageHandler *destination) | |
| Create a ClientMessageEvent specifying the source and destination. | |
| ClientMessageEvent (CODEX_Events::Activity *source, ClientMessageHandler *destination, const MT &message) | |
| Create a ClientMessageEvent specifying the message. | |
| virtual | ~ClientMessageEvent () |
| Virtual destructor. | |
| ClientMessageHandler * | destination () const |
| The destination. | |
| const MT & | message () const |
| The wrapped object. | |
| bool | handle () |
| Handle this event -- invokes the appropriate handler from the destination Activity, which must have type ClientMessageHandler. | |
| void | reRoute (ClientMessageHandler *newDestination) |
| Re-route this event to another Activity. | |
| bool | unmarshal (unsigned char **pp, long length) |
| Forwards an unmarshal request to the wrapped object. | |
| Activity * | source () |
| The Activity that created this event. | |
Protected Attributes | |
| ClientMessageHandler * | m_destination |
| The CODEX_Events::Activity that handles this event. | |
| Activity * | m_source |
| Source of this event. | |
The template argument is the message type, and specialization of the templated handler in ClientMessageHandler provides the needed polymorphism.
Definition at line 62 of file ClientMessageEvent.h.
|
||||||||||
|
Re-route this event to another Activity.
This is a much cheaper operation than copying the data to a new event. The CODEX_Events::Activity calling this should return Definition at line 103 of file ClientMessageEvent.h. References CODEX_KeyService::ClientMessageEvent< MT >::m_destination. |
1.4.1