OpenCPN Partial API docs
Loading...
Searching...
No Matches
NavMsgBus Class Reference

The raw message layer, a singleton. More...

#include <comm_navmsg_bus.h>

Inheritance diagram for NavMsgBus:
DriverListener

Public Member Functions

NavMsgBusoperator= (NavMsgBus &)=delete
 
 NavMsgBus (const NavMsgBus &)=delete
 
void SendMessage (std::shared_ptr< const NavMsg > message, std::shared_ptr< const NavAddr > address)
 
void Notify (std::shared_ptr< const NavMsg > message)
 Handle a received message. More...
 
void Notify (const AbstractCommDriver &driver)
 Handle changes in driver list. More...
 
virtual void Notify (std::shared_ptr< const NavMsg > message)=0
 Handle a received message. More...
 
virtual void Notify (const AbstractCommDriver &driver)=0
 Handle driver status change. More...
 

Static Public Member Functions

static NavMsgBusGetInstance ()
 

Detailed Description

The raw message layer, a singleton.

Definition at line 43 of file comm_navmsg_bus.h.

Member Function Documentation

◆ GetInstance()

NavMsgBus & NavMsgBus::GetInstance ( )
static

Definition at line 44 of file comm_navmsg_bus.cpp.

◆ Notify() [1/2]

void NavMsgBus::Notify ( const AbstractCommDriver driver)
virtual

Handle changes in driver list.

Implements DriverListener.

Definition at line 50 of file comm_navmsg_bus.cpp.

◆ Notify() [2/2]

void NavMsgBus::Notify ( std::shared_ptr< const NavMsg message)
virtual

Handle a received message.

Implements DriverListener.

Definition at line 40 of file comm_navmsg_bus.cpp.


The documentation for this class was generated from the following files: