|
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 | RegisterKey (const std::string &key) |
| Register a message type in list the GetActiveMessages() list. | |
| 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. | |
Public Member Functions inherited from DriverListener | |
| virtual | ~DriverListener ()=default |
| Destroy the Driver Listener object. | |
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 39 of file comm_navmsg_bus.h.
|
inline |
Return list of message types sent or received.
Definition at line 61 of file comm_navmsg_bus.h.
|
static |
Definition at line 43 of file comm_navmsg_bus.cpp.
|
virtual |
Handle changes in driver list.
Implements DriverListener.
Definition at line 49 of file comm_navmsg_bus.cpp.
|
virtual |
Accept message received by driver, make it available for upper layers.
Implements DriverListener.
Definition at line 27 of file comm_navmsg_bus.cpp.
| void NavMsgBus::RegisterKey | ( | const std::string & | key | ) |
Register a message type in list the GetActiveMessages() list.
Definition at line 34 of file comm_navmsg_bus.cpp.
| EventVar NavMsgBus::new_msg_event |
Notified without data when new message type(s) are detected.
Definition at line 64 of file comm_navmsg_bus.h.