OpenCPN Partial API docs
|
Process incoming messages. More...
#include <comm_bridge.h>
Public Member Functions | |
bool | Initialize () |
bool | HandleN0183_AIVDO (const N0183MsgPtr &n0183_msg) |
Processes NMEA 0183 AIVDO sentences containing own vessel's AIS data. | |
bool | EvalPriority (const NavMsgPtr &msg, PriorityContainer &active_priority, PriorityMap &priority_map) |
std::vector< std::string > | GetPriorityMaps () const |
PriorityContainer & | GetPriorityContainer (const std::string &category) |
void | UpdateAndApplyMaps (const std::vector< std::string > &new_maps) |
bool | LoadConfig () |
bool | SaveConfig () const |
Process incoming messages.
Listem to "known" messages and process them for example by broadcasting ship data. Also handles message source priorities i.e., which source to use for broadcasted data.
Definition at line 90 of file comm_bridge.h.
CommBridge::CommBridge | ( | ) |
Definition at line 254 of file comm_bridge.cpp.
bool CommBridge::EvalPriority | ( | const NavMsgPtr & | msg, |
PriorityContainer & | active_priority, | ||
PriorityMap & | priority_map | ||
) |
Definition at line 1176 of file comm_bridge.cpp.
PriorityContainer & CommBridge::GetPriorityContainer | ( | const std::string & | category | ) |
Definition at line 1100 of file comm_bridge.cpp.
std::vector< string > CommBridge::GetPriorityMaps | ( | ) | const |
Definition at line 517 of file comm_bridge.cpp.
bool CommBridge::HandleN0183_AIVDO | ( | const N0183MsgPtr & | n0183_msg | ) |
Processes NMEA 0183 AIVDO sentences containing own vessel's AIS data.
AIVDO messages provide navigation data broadcast by the vessel's own AIS transponder:
The data is evaluated against other sources based on configured priorities. If accepted, the data updates the vessel's:
n0183_msg | Shared pointer to NMEA 0183 message containing AIVDO sentence |
Definition at line 963 of file comm_bridge.cpp.
bool CommBridge::Initialize | ( | ) |
Definition at line 269 of file comm_bridge.cpp.
bool CommBridge::LoadConfig | ( | ) |
Definition at line 1121 of file comm_bridge.cpp.
bool CommBridge::SaveConfig | ( | ) | const |
Definition at line 1153 of file comm_bridge.cpp.
void CommBridge::UpdateAndApplyMaps | ( | const std::vector< std::string > & | new_maps | ) |
Definition at line 1115 of file comm_bridge.cpp.