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, State _state) | |
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(). | |
![]() | |
virtual | ~KeyProvider ()=default |
Destroy the Key Provider object. | |
Static Public Member Functions | |
static std::string | MessageKey (const char *type) |
Return key which should be used to listen to given message type. | |
![]() | |
static NavAddr::Bus | GetBusByKey (const std::string &key) |
Return bus corresponding to given key. | |
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 |
const State | state |
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 | |
![]() | |
enum class | State { kOk , kCannotParse , kBadChecksum , kFiltered } |
![]() | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src, State _state) | |
NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
A regular Nmea0183 message.
Definition at line 313 of file comm_navmsg.h.
|
inline |
Definition at line 315 of file comm_navmsg.h.
|
inline |
Definition at line 322 of file comm_navmsg.h.
|
inline |
Definition at line 326 of file comm_navmsg.h.
|
inline |
Definition at line 329 of file comm_navmsg.h.
|
inline |
Definition at line 333 of file comm_navmsg.h.
|
inlineoverridevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 341 of file comm_navmsg.h.
|
inlinestatic |
Return key which should be used to listen to given message type.
Definition at line 350 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 358 of file comm_navmsg.h.
const std::string Nmea0183Msg::talker |
For example 'GP'.
Definition at line 356 of file comm_navmsg.h.
const std::string Nmea0183Msg::type |
For example 'GGA'.
Definition at line 357 of file comm_navmsg.h.