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 |
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. | |
Additional Inherited Members | |
![]() | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
A regular Nmea0183 message.
Definition at line 294 of file comm_navmsg.h.
|
inline |
Definition at line 296 of file comm_navmsg.h.
|
inline |
Definition at line 303 of file comm_navmsg.h.
|
inline |
Definition at line 306 of file comm_navmsg.h.
|
inline |
Definition at line 310 of file comm_navmsg.h.
|
inlinevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 318 of file comm_navmsg.h.
|
inlinestatic |
Return key which should be used to listen to given message type.
Definition at line 325 of file comm_navmsg.h.
|
overridevirtual |
Return printable string for logging etc without trailing nl.
Reimplemented from NavMsg.
Definition at line 104 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 110 of file comm_navmsg.cpp.
const std::string Nmea0183Msg::payload |
Complete NMEA0183 sentence, also prefix.
Definition at line 332 of file comm_navmsg.h.
const std::string Nmea0183Msg::talker |
For example 'GP'.
Definition at line 330 of file comm_navmsg.h.
const std::string Nmea0183Msg::type |
For example 'GGA'.
Definition at line 331 of file comm_navmsg.h.