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 89 of file comm_bridge.h.
CommBridge::CommBridge | ( | ) |
Definition at line 251 of file comm_bridge.cpp.
bool CommBridge::EvalPriority | ( | const NavMsgPtr & | msg, |
PriorityContainer & | active_priority, | ||
PriorityMap & | priority_map | ||
) |
Definition at line 1173 of file comm_bridge.cpp.
PriorityContainer & CommBridge::GetPriorityContainer | ( | const std::string & | category | ) |
Definition at line 1097 of file comm_bridge.cpp.
std::vector< string > CommBridge::GetPriorityMaps | ( | ) | const |
Definition at line 514 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 960 of file comm_bridge.cpp.
bool CommBridge::Initialize | ( | ) |
Definition at line 266 of file comm_bridge.cpp.
bool CommBridge::LoadConfig | ( | ) |
Definition at line 1118 of file comm_bridge.cpp.
bool CommBridge::SaveConfig | ( | ) | const |
Definition at line 1150 of file comm_bridge.cpp.
void CommBridge::UpdateAndApplyMaps | ( | const std::vector< std::string > & | new_maps | ) |
Definition at line 1112 of file comm_bridge.cpp.