Base class for rotor
message.
More...
#include <message.h>
Public Member Functions | |
message_base_t (const void *type_index_, const address_ptr_t &addr) | |
constructor which takes destination address | |
Public Attributes | |
const void * | type_index |
unique message type pointer. | |
address_ptr_t | address |
message destination address | |
address_ptr_t | next_route |
post-delivery destination address, see make_routed_message() for usage | |
Base class for rotor
message.
The base class contains destination address (in the form of intrusive pointer to address_t
) and possibility to detect final message type.
The actual message payload meant to be provided by derived classes
const void* rotor::message_base_t::type_index |
unique message type pointer.
The unique message type pointer is used to runtime check message type match when the message is delivered to subscribers.