OpenCPN Partial API docs
|
Actual data sent between application and transport layer. More...
#include <comm_navmsg.h>
Public Member Functions | |
virtual std::string | key () const =0 |
Return unique key used by observable to notify/listen. | |
virtual std::string | to_string () const |
Return printable string for logging etc without trailing nl. | |
virtual std::string | to_vdr () const |
Return message in unquoted format used by VDR plugin, see https://opencpn-manuals.github.io/main/vdr/log_format.html. | |
std::string | GetKey () const |
Alias for key(). | |
Public Attributes | |
const NavAddr::Bus | bus |
std::shared_ptr< const NavAddr > | source |
Source address is set by drivers when receiving, unused and should be empty when sending. | |
const NavmsgTimePoint | created_at |
Protected Member Functions | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
Actual data sent between application and transport layer.
Definition at line 226 of file comm_navmsg.h.
|
inlineprotected |
Definition at line 257 of file comm_navmsg.h.
|
inlinevirtual |
|
pure virtual |
Return unique key used by observable to notify/listen.
Implemented in PluginMsg, SignalkMsg, NullNavMsg, Nmea2000Msg, Nmea0183Msg, and AppNavMsg.
|
inlinevirtual |
Return printable string for logging etc without trailing nl.
Reimplemented in PluginMsg, SignalkMsg, Nmea2000Msg, Nmea0183Msg, and AppNavMsg.
Definition at line 235 of file comm_navmsg.h.
|
inlinevirtual |
Return message in unquoted format used by VDR plugin, see https://opencpn-manuals.github.io/main/vdr/log_format.html.
Reimplemented in Nmea2000Msg, and Nmea0183Msg.
Definition at line 241 of file comm_navmsg.h.
const NavAddr::Bus NavMsg::bus |
Definition at line 246 of file comm_navmsg.h.
const NavmsgTimePoint NavMsg::created_at |
Definition at line 254 of file comm_navmsg.h.
std::shared_ptr<const NavAddr> NavMsg::source |
Source address is set by drivers when receiving, unused and should be empty when sending.
Definition at line 252 of file comm_navmsg.h.