OpenCPN Partial API docs
|
A regular Nmea0183 message. More...
#include <comm_navmsg.h>
Public Member Functions | |
Nmea0183Msg (const std::string &id, const std::string &_payload, std::shared_ptr< const NavAddr > src) | |
Nmea0183Msg (const std::string &id) | |
Nmea0183Msg (const Nmea0183Msg &other, const std::string &t) | |
std::string | key () const override |
Return unique key used by observable to notify/listen. | |
std::string | to_string () const override |
Return printable string for logging etc without trailing nl. | |
std::string | to_vdr () const override |
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(). | |
Static Public Member Functions | |
static std::string | MessageKey (const char *type="ALL") |
Return key which should be used to listen to given message type. | |
Public Attributes | |
const std::string | talker |
For example 'GP'. | |
const std::string | type |
For example 'GGA'. | |
const std::string | payload |
Complete NMEA0183 sentence, also prefix. | |
![]() | |
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 |
Additional Inherited Members | |
![]() | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
A regular Nmea0183 message.
Definition at line 300 of file comm_navmsg.h.
|
inline |
Definition at line 302 of file comm_navmsg.h.
|
inline |
Definition at line 309 of file comm_navmsg.h.
|
inline |
Definition at line 312 of file comm_navmsg.h.
|
inline |
Definition at line 316 of file comm_navmsg.h.
|
inlineoverridevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 324 of file comm_navmsg.h.
|
inlinestatic |
Return key which should be used to listen to given message type.
Definition at line 333 of file comm_navmsg.h.
|
overridevirtual |
Return printable string for logging etc without trailing nl.
Reimplemented from NavMsg.
Definition at line 134 of file comm_navmsg.cpp.
|
overridevirtual |
Return message in unquoted format used by VDR plugin, see https://opencpn-manuals.github.io/main/vdr/log_format.html.
Reimplemented from NavMsg.
Definition at line 140 of file comm_navmsg.cpp.
const std::string Nmea0183Msg::payload |
Complete NMEA0183 sentence, also prefix.
Definition at line 340 of file comm_navmsg.h.
const std::string Nmea0183Msg::talker |
For example 'GP'.
Definition at line 338 of file comm_navmsg.h.
const std::string Nmea0183Msg::type |
For example 'GGA'.
Definition at line 339 of file comm_navmsg.h.