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

Handle most incoming messages and make them available for other parties. More...

#include <comm_bridge.h>

Inheritance diagram for CommBridge:

Public Member Functions

bool Initialize ()
 
void InitCommListeners ()
 
bool HandleN2K_129029 (std::shared_ptr< const Nmea2000Msg > n2k_msg)
 
bool HandleN2K_129025 (std::shared_ptr< const Nmea2000Msg > n2k_msg)
 
bool HandleN2K_129026 (std::shared_ptr< const Nmea2000Msg > n2k_msg)
 
bool HandleN2K_127250 (std::shared_ptr< const Nmea2000Msg > n2k_msg)
 
bool HandleN2K_129540 (std::shared_ptr< const Nmea2000Msg > n2k_msg)
 
bool HandleN0183_RMC (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_HDT (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_HDG (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_HDM (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_VTG (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_GSV (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_GGA (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_GLL (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleN0183_AIVDO (std::shared_ptr< const Nmea0183Msg > n0183_msg)
 
bool HandleSignalK (std::shared_ptr< const SignalkMsg > sK_msg)
 
void OnDriverStateChange ()
 
void OnWatchdogTimer (wxTimerEvent &event)
 
bool EvalPriority (std::shared_ptr< const NavMsg > msg, PriorityContainer &active_priority, std::unordered_map< std::string, int > &priority_map)
 
std::string GetPriorityKey (std::shared_ptr< const NavMsg > msg)
 
std::vector< std::string > GetPriorityMaps ()
 
PriorityContainerGetPriorityContainer (const std::string category)
 
void UpdateAndApplyMaps (std::vector< std::string > new_maps)
 
bool LoadConfig (void)
 
bool SaveConfig (void)
 

Public Attributes

Watchdogs m_watchdogs
 
wxTimer m_watchdog_timer
 
ObservableListener listener_N2K_129029
 
ObservableListener listener_N2K_129025
 
ObservableListener listener_N2K_129026
 
ObservableListener listener_N2K_127250
 
ObservableListener listener_N2K_129540
 
ObservableListener listener_N0183_RMC
 
ObservableListener listener_N0183_HDT
 
ObservableListener listener_N0183_HDG
 
ObservableListener listener_N0183_HDM
 
ObservableListener listener_N0183_VTG
 
ObservableListener listener_N0183_GSV
 
ObservableListener listener_N0183_GGA
 
ObservableListener listener_N0183_GLL
 
ObservableListener listener_N0183_AIVDO
 
ObservableListener listener_SignalK
 
ObservableListener driver_change_listener
 
CommDecoder m_decoder
 

Detailed Description

Handle most incoming messages and make them available for other parties.

Handles priorities, selecting the input value to use if there are multiple sources for the same value.

Also handle the legacy layer making "new style" messages available for plugins using the old style API.

Definition at line 69 of file comm_bridge.h.

Constructor & Destructor Documentation

◆ CommBridge()

CommBridge::CommBridge ( )

Definition at line 111 of file comm_bridge.cpp.

◆ ~CommBridge()

CommBridge::~CommBridge ( )

Definition at line 113 of file comm_bridge.cpp.

Member Function Documentation

◆ EvalPriority()

bool CommBridge::EvalPriority ( std::shared_ptr< const NavMsg msg,
PriorityContainer active_priority,
std::unordered_map< std::string, int > &  priority_map 
)

Definition at line 1107 of file comm_bridge.cpp.

◆ GetPriorityContainer()

PriorityContainer & CommBridge::GetPriorityContainer ( const std::string  category)

Definition at line 989 of file comm_bridge.cpp.

◆ GetPriorityKey()

std::string CommBridge::GetPriorityKey ( std::shared_ptr< const NavMsg msg)

Definition at line 1071 of file comm_bridge.cpp.

◆ GetPriorityMaps()

std::vector< std::string > CommBridge::GetPriorityMaps ( )

Definition at line 432 of file comm_bridge.cpp.

◆ HandleN0183_AIVDO()

bool CommBridge::HandleN0183_AIVDO ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 838 of file comm_bridge.cpp.

◆ HandleN0183_GGA()

bool CommBridge::HandleN0183_GGA ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 795 of file comm_bridge.cpp.

◆ HandleN0183_GLL()

bool CommBridge::HandleN0183_GLL ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 821 of file comm_bridge.cpp.

◆ HandleN0183_GSV()

bool CommBridge::HandleN0183_GSV ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 775 of file comm_bridge.cpp.

◆ HandleN0183_HDG()

bool CommBridge::HandleN0183_HDG ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 713 of file comm_bridge.cpp.

◆ HandleN0183_HDM()

bool CommBridge::HandleN0183_HDM ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 741 of file comm_bridge.cpp.

◆ HandleN0183_HDT()

bool CommBridge::HandleN0183_HDT ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 695 of file comm_bridge.cpp.

◆ HandleN0183_RMC()

bool CommBridge::HandleN0183_RMC ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 663 of file comm_bridge.cpp.

◆ HandleN0183_VTG()

bool CommBridge::HandleN0183_VTG ( std::shared_ptr< const Nmea0183Msg n0183_msg)

Definition at line 758 of file comm_bridge.cpp.

◆ HandleN2K_127250()

bool CommBridge::HandleN2K_127250 ( std::shared_ptr< const Nmea2000Msg n2k_msg)

Definition at line 605 of file comm_bridge.cpp.

◆ HandleN2K_129025()

bool CommBridge::HandleN2K_129025 ( std::shared_ptr< const Nmea2000Msg n2k_msg)

Definition at line 553 of file comm_bridge.cpp.

◆ HandleN2K_129026()

bool CommBridge::HandleN2K_129026 ( std::shared_ptr< const Nmea2000Msg n2k_msg)

Definition at line 578 of file comm_bridge.cpp.

◆ HandleN2K_129029()

bool CommBridge::HandleN2K_129029 ( std::shared_ptr< const Nmea2000Msg n2k_msg)

Definition at line 516 of file comm_bridge.cpp.

◆ HandleN2K_129540()

bool CommBridge::HandleN2K_129540 ( std::shared_ptr< const Nmea2000Msg n2k_msg)

Definition at line 642 of file comm_bridge.cpp.

◆ HandleSignalK()

bool CommBridge::HandleSignalK ( std::shared_ptr< const SignalkMsg sK_msg)

Definition at line 878 of file comm_bridge.cpp.

◆ InitCommListeners()

void CommBridge::InitCommListeners ( )

Definition at line 272 of file comm_bridge.cpp.

◆ Initialize()

bool CommBridge::Initialize ( )

Definition at line 115 of file comm_bridge.cpp.

◆ LoadConfig()

bool CommBridge::LoadConfig ( void  )

Definition at line 1011 of file comm_bridge.cpp.

◆ OnDriverStateChange()

void CommBridge::OnDriverStateChange ( )

Definition at line 401 of file comm_bridge.cpp.

◆ OnWatchdogTimer()

void CommBridge::OnWatchdogTimer ( wxTimerEvent &  event)

Definition at line 167 of file comm_bridge.cpp.

◆ SaveConfig()

bool CommBridge::SaveConfig ( void  )

Definition at line 1045 of file comm_bridge.cpp.

◆ UpdateAndApplyMaps()

void CommBridge::UpdateAndApplyMaps ( std::vector< std::string >  new_maps)

Definition at line 1004 of file comm_bridge.cpp.

Member Data Documentation

◆ driver_change_listener

ObservableListener CommBridge::driver_change_listener

Definition at line 133 of file comm_bridge.h.

◆ listener_N0183_AIVDO

ObservableListener CommBridge::listener_N0183_AIVDO

Definition at line 129 of file comm_bridge.h.

◆ listener_N0183_GGA

ObservableListener CommBridge::listener_N0183_GGA

Definition at line 127 of file comm_bridge.h.

◆ listener_N0183_GLL

ObservableListener CommBridge::listener_N0183_GLL

Definition at line 128 of file comm_bridge.h.

◆ listener_N0183_GSV

ObservableListener CommBridge::listener_N0183_GSV

Definition at line 126 of file comm_bridge.h.

◆ listener_N0183_HDG

ObservableListener CommBridge::listener_N0183_HDG

Definition at line 123 of file comm_bridge.h.

◆ listener_N0183_HDM

ObservableListener CommBridge::listener_N0183_HDM

Definition at line 124 of file comm_bridge.h.

◆ listener_N0183_HDT

ObservableListener CommBridge::listener_N0183_HDT

Definition at line 122 of file comm_bridge.h.

◆ listener_N0183_RMC

ObservableListener CommBridge::listener_N0183_RMC

Definition at line 121 of file comm_bridge.h.

◆ listener_N0183_VTG

ObservableListener CommBridge::listener_N0183_VTG

Definition at line 125 of file comm_bridge.h.

◆ listener_N2K_127250

ObservableListener CommBridge::listener_N2K_127250

Definition at line 118 of file comm_bridge.h.

◆ listener_N2K_129025

ObservableListener CommBridge::listener_N2K_129025

Definition at line 116 of file comm_bridge.h.

◆ listener_N2K_129026

ObservableListener CommBridge::listener_N2K_129026

Definition at line 117 of file comm_bridge.h.

◆ listener_N2K_129029

ObservableListener CommBridge::listener_N2K_129029

Definition at line 115 of file comm_bridge.h.

◆ listener_N2K_129540

ObservableListener CommBridge::listener_N2K_129540

Definition at line 119 of file comm_bridge.h.

◆ listener_SignalK

ObservableListener CommBridge::listener_SignalK

Definition at line 131 of file comm_bridge.h.

◆ m_decoder

CommDecoder CommBridge::m_decoder

Definition at line 135 of file comm_bridge.h.

◆ m_watchdog_timer

wxTimer CommBridge::m_watchdog_timer

Definition at line 112 of file comm_bridge.h.

◆ m_watchdogs

Watchdogs CommBridge::m_watchdogs

Definition at line 111 of file comm_bridge.h.


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