|
OpenCPN Partial API docs
|
Application layer messaging, a singleton. More...
#include <comm_appmsg_bus.h>
Public Member Functions | |
| AppMsgBus (const AppMsgBus &)=delete | |
| AppMsgBus & | operator= (const AppMsgBus &)=delete |
| void | Notify (const std::shared_ptr< const AppMsg > &msg) |
| Send message to everyone listening to given message type. | |
| void | set_priority (AppMsg::Type data, const NavAddr &src, unsigned prio) |
| Set the priority for a given data source providing data. | |
Static Public Member Functions | |
| static AppMsgBus & | GetInstance () |
Application layer messaging, a singleton.
Definition at line 42 of file comm_appmsg_bus.h.
|
static |
Definition at line 42 of file comm_appmsg_bus.cpp.
| void AppMsgBus::Notify | ( | const std::shared_ptr< const AppMsg > & | msg | ) |
Send message to everyone listening to given message type.
Definition at line 36 of file comm_appmsg_bus.cpp.
| void AppMsgBus::set_priority | ( | AppMsg::Type | data, |
| const NavAddr & | src, | ||
| unsigned | prio ) |
Set the priority for a given data source providing data.
Higher priorities are preferred.