![]() |
Embedded Template Library
1.0
|
Interface for message bus. More...
#include <message_bus.h>
Public Member Functions | |
bool | subscribe (etl::imessage_router &router) |
Subscribe to the bus. | |
void | unsubscribe (etl::message_router_id_t id) |
Unsubscribe from the bus. | |
void | unsubscribe (etl::imessage_router &router) |
void | receive (const etl::imessage &message) ETL_OVERRIDE |
void | receive (etl::message_router_id_t destination_router_id, const etl::imessage &message) |
void | receive (etl::imessage_router &source, const etl::imessage &message) ETL_OVERRIDE |
void | receive (etl::imessage_router &source, etl::message_router_id_t destination_router_id, const etl::imessage &message) ETL_OVERRIDE |
bool | accepts (etl::message_id_t) const ETL_OVERRIDE |
size_t | size () const |
void | clear () |
ETL_DEPRECATED bool | is_null_router () const ETL_OVERRIDE |
bool | is_producer () const ETL_OVERRIDE |
bool | is_consumer () const ETL_OVERRIDE |
virtual bool | accepts (etl::message_id_t id) const=0 |
bool | accepts (const etl::imessage &msg) const |
virtual bool | accepts (etl::message_id_t id) const=0 |
bool | accepts (const etl::imessage &msg) const |
Protected Member Functions | |
imessage_bus (router_list_t &list) | |
Constructor. | |
Additional Inherited Members |
Interface for message bus.
|
inlinevirtual |
Does this message bus accept the message id? Yes!, it accepts everything!
Implements etl::imessage_router.