#include <messaging.h>
◆ MessageCounts
template<typename MessageType >
◆ Dispatcher()
template<typename MessageType >
◆ convert_message_counts()
template<typename MessageType >
◆ dispatch()
template<typename MessageType >
Dispatch a single message
If there is a handler registered for this type, it will be called with the given message body.
- Exceptions
-
no_handler | if no handler is registered for this type. |
◆ has_handler()
template<typename MessageType >
Is handler already registered for this message type
- Returns
- true iff there is an active handler for type, which has not been removed.
◆ remove_message_handler()
template<typename MessageType >
Remove the callback for this message type
The handler will be erased and will not receive any future messages from this Dispatcher.
- Exceptions
-
no_handler | if no handler is registered for this type. |
◆ retrieve_message_counts()
template<typename MessageType >
◆ set_message_handler()
template<typename MessageType >
Set a callback for this message type
Each message type may have a single handler registered at a time. Every time a message with this type is encountered, the handler will receive a callback with the raw message data.
The handler will remain registered and continue to receive messages until it is explicitly removed by a call to remove_message_handler.
- Exceptions
-
The documentation for this class was generated from the following file: