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 |
Return printable string for logging etc without trailing nl. | |
![]() | |
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 275 of file comm_navmsg.h.
|
inline |
Definition at line 277 of file comm_navmsg.h.
|
inline |
Definition at line 284 of file comm_navmsg.h.
|
inline |
Definition at line 287 of file comm_navmsg.h.
|
inline |
Definition at line 291 of file comm_navmsg.h.
|
inlinevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 299 of file comm_navmsg.h.
|
inlinestatic |
Return key which should be used to listen to given message type.
Definition at line 304 of file comm_navmsg.h.
|
virtual |
Return printable string for logging etc without trailing nl.
Reimplemented from NavMsg.
Definition at line 92 of file comm_navmsg.cpp.
const std::string Nmea0183Msg::payload |
Complete NMEA0183 sentence, also prefix.
Definition at line 311 of file comm_navmsg.h.
const std::string Nmea0183Msg::talker |
For example 'GP'.
Definition at line 309 of file comm_navmsg.h.
const std::string Nmea0183Msg::type |
For example 'GGA'.
Definition at line 310 of file comm_navmsg.h.