OpenCPN Partial API docs
|
The raw message layer, a singleton. More...
#include <comm_navmsg_bus.h>
Public Member Functions | |
NavMsgBus & | operator= (NavMsgBus &)=delete |
NavMsgBus (const NavMsgBus &)=delete | |
void | SendMessage (std::shared_ptr< const NavMsg > message, std::shared_ptr< const NavAddr > address) |
Send a message to given destination using suitable driver. | |
void | Notify (std::shared_ptr< const NavMsg > message) |
Accept message received by driver, make it available for upper layers. | |
void | Notify (const AbstractCommDriver &driver) |
Handle changes in driver list. | |
const std::set< std::string > & | GetActiveMessages () |
Return list of message types sent or received. | |
Static Public Member Functions | |
static NavMsgBus & | GetInstance () |
Public Attributes | |
EventVar | new_msg_event |
Notified without data when new message type(s) are detected. | |
The raw message layer, a singleton.
Definition at line 40 of file comm_navmsg_bus.h.
|
inline |
Return list of message types sent or received.
Definition at line 59 of file comm_navmsg_bus.h.
|
static |
Definition at line 39 of file comm_navmsg_bus.cpp.
|
virtual |
Handle changes in driver list.
Implements DriverListener.
Definition at line 45 of file comm_navmsg_bus.cpp.
|
virtual |
Accept message received by driver, make it available for upper layers.
Implements DriverListener.
Definition at line 28 of file comm_navmsg_bus.cpp.
EventVar NavMsgBus::new_msg_event |
Notified without data when new message type(s) are detected.
Definition at line 62 of file comm_navmsg_bus.h.