OpenCPN Partial API docs
|
Handle most incoming messages and make them available for other parties. More...
#include <comm_bridge.h>
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 () |
PriorityContainer & | GetPriorityContainer (const std::string category) |
void | UpdateAndApplyMaps (std::vector< std::string > new_maps) |
bool | LoadConfig (void) |
bool | SaveConfig (void) |
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.
CommBridge::CommBridge | ( | ) |
Definition at line 111 of file comm_bridge.cpp.
CommBridge::~CommBridge | ( | ) |
Definition at line 113 of file comm_bridge.cpp.
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.
PriorityContainer & CommBridge::GetPriorityContainer | ( | const std::string | category | ) |
Definition at line 989 of file comm_bridge.cpp.
std::string CommBridge::GetPriorityKey | ( | std::shared_ptr< const NavMsg > | msg | ) |
Definition at line 1071 of file comm_bridge.cpp.
std::vector< std::string > CommBridge::GetPriorityMaps | ( | ) |
Definition at line 432 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_AIVDO | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 838 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_GGA | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 795 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_GLL | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 821 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_GSV | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 775 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_HDG | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 713 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_HDM | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 741 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_HDT | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 695 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_RMC | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 663 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_VTG | ( | std::shared_ptr< const Nmea0183Msg > | n0183_msg | ) |
Definition at line 758 of file comm_bridge.cpp.
bool CommBridge::HandleN2K_127250 | ( | std::shared_ptr< const Nmea2000Msg > | n2k_msg | ) |
Definition at line 605 of file comm_bridge.cpp.
bool CommBridge::HandleN2K_129025 | ( | std::shared_ptr< const Nmea2000Msg > | n2k_msg | ) |
Definition at line 553 of file comm_bridge.cpp.
bool CommBridge::HandleN2K_129026 | ( | std::shared_ptr< const Nmea2000Msg > | n2k_msg | ) |
Definition at line 578 of file comm_bridge.cpp.
bool CommBridge::HandleN2K_129029 | ( | std::shared_ptr< const Nmea2000Msg > | n2k_msg | ) |
Definition at line 516 of file comm_bridge.cpp.
bool CommBridge::HandleN2K_129540 | ( | std::shared_ptr< const Nmea2000Msg > | n2k_msg | ) |
Definition at line 642 of file comm_bridge.cpp.
bool CommBridge::HandleSignalK | ( | std::shared_ptr< const SignalkMsg > | sK_msg | ) |
Definition at line 878 of file comm_bridge.cpp.
void CommBridge::InitCommListeners | ( | ) |
Definition at line 272 of file comm_bridge.cpp.
bool CommBridge::Initialize | ( | ) |
Definition at line 115 of file comm_bridge.cpp.
bool CommBridge::LoadConfig | ( | void | ) |
Definition at line 1011 of file comm_bridge.cpp.
void CommBridge::OnDriverStateChange | ( | ) |
Definition at line 401 of file comm_bridge.cpp.
void CommBridge::OnWatchdogTimer | ( | wxTimerEvent & | event | ) |
Definition at line 167 of file comm_bridge.cpp.
bool CommBridge::SaveConfig | ( | void | ) |
Definition at line 1045 of file comm_bridge.cpp.
void CommBridge::UpdateAndApplyMaps | ( | std::vector< std::string > | new_maps | ) |
Definition at line 1004 of file comm_bridge.cpp.
ObservableListener CommBridge::driver_change_listener |
Definition at line 133 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_AIVDO |
Definition at line 129 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_GGA |
Definition at line 127 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_GLL |
Definition at line 128 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_GSV |
Definition at line 126 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_HDG |
Definition at line 123 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_HDM |
Definition at line 124 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_HDT |
Definition at line 122 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_RMC |
Definition at line 121 of file comm_bridge.h.
ObservableListener CommBridge::listener_N0183_VTG |
Definition at line 125 of file comm_bridge.h.
ObservableListener CommBridge::listener_N2K_127250 |
Definition at line 118 of file comm_bridge.h.
ObservableListener CommBridge::listener_N2K_129025 |
Definition at line 116 of file comm_bridge.h.
ObservableListener CommBridge::listener_N2K_129026 |
Definition at line 117 of file comm_bridge.h.
ObservableListener CommBridge::listener_N2K_129029 |
Definition at line 115 of file comm_bridge.h.
ObservableListener CommBridge::listener_N2K_129540 |
Definition at line 119 of file comm_bridge.h.
ObservableListener CommBridge::listener_SignalK |
Definition at line 131 of file comm_bridge.h.
CommDecoder CommBridge::m_decoder |
Definition at line 135 of file comm_bridge.h.
wxTimer CommBridge::m_watchdog_timer |
Definition at line 112 of file comm_bridge.h.
Watchdogs CommBridge::m_watchdogs |
Definition at line 111 of file comm_bridge.h.