OpenCPN Partial API docs
|
Application layer messaging, a singleton. More...
#include <comm_appmsg_bus.h>
Public Member Functions | |
void | Notify (std::shared_ptr< const AppMsg > msg) |
Send message to everyone listening to given message type. More... | |
void | set_priority (AppMsg::Type data, const NavAddr &src, unsigned prio) |
Set the priority for a given data source providing data. More... | |
Static Public Member Functions | |
static AppMsgBus & | GetInstance () |
Application layer messaging, a singleton.
Decoded messages send/receive support. This class represents the top layer in the three layer model drivers, raw messages and decoded messages.
Message definitions are in comm_appmsg.h
Definition at line 44 of file comm_appmsg_bus.h.
|
static |
Definition at line 39 of file comm_appmsg_bus.cpp.
void AppMsgBus::Notify | ( | std::shared_ptr< const AppMsg > | msg | ) |
Send message to everyone listening to given message type.
Definition at line 35 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.