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

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 AppMsgBusGetInstance ()
 

Detailed Description

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.

Member Function Documentation

◆ GetInstance()

AppMsgBus & AppMsgBus::GetInstance ( )
static

Definition at line 39 of file comm_appmsg_bus.cpp.

◆ Notify()

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.

◆ set_priority()

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.


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