|
OpenCPN Partial API docs
|
See: https://github.com/OpenCPN/OpenCPN/issues/2729#issuecomment-1179506343. More...
#include <comm_navmsg.h>
Public Member Functions | |
| Nmea2000Msg (const uint64_t _pgn) | |
| Nmea2000Msg (const uint64_t _pgn, std::shared_ptr< const NavAddr2000 > src) | |
| Nmea2000Msg (const uint64_t _pgn, const std::vector< unsigned char > &_payload, std::shared_ptr< const NavAddr2000 > src) | |
| Nmea2000Msg (const uint64_t _pgn, const std::vector< unsigned char > &_payload, std::shared_ptr< const NavAddr2000 > src, int _priority) | |
| std::string | key () const override |
| Return unique key used by observable to notify/listen. | |
| std::string | to_string () const override |
| Print "bus key id payload". | |
| 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. | |
Public Member Functions inherited from NavMsg | |
| std::string | GetKey () const |
| Alias for key(). | |
Public Member Functions inherited from KeyProvider | |
| virtual | ~KeyProvider ()=default |
| Destroy the Key Provider object. | |
Public Attributes | |
| N2kPGN | PGN |
| std::vector< unsigned char > | payload |
| int | priority |
Public Attributes inherited from NavMsg | |
| 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 | |
Public Types inherited from NavMsg | |
| enum class | State { kOk , kCannotParse , kBadChecksum , kFiltered } |
Static Public Member Functions inherited from NavMsg | |
| static NavAddr::Bus | GetBusByKey (const std::string &key) |
| Return bus corresponding to given key. | |
Protected Member Functions inherited from NavMsg | |
| NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src, State _state) | |
| NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) | |
See: https://github.com/OpenCPN/OpenCPN/issues/2729#issuecomment-1179506343.
Definition at line 277 of file comm_navmsg.h.
|
inline |
Definition at line 279 of file comm_navmsg.h.
|
inline |
Definition at line 282 of file comm_navmsg.h.
|
inline |
Definition at line 285 of file comm_navmsg.h.
|
inline |
Definition at line 289 of file comm_navmsg.h.
|
inlineoverridevirtual |
Return unique key used by observable to notify/listen.
Implements NavMsg.
Definition at line 298 of file comm_navmsg.h.
|
overridevirtual |
Print "bus key id payload".
Reimplemented from NavMsg.
Definition at line 90 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 126 of file comm_navmsg.cpp.
| std::vector<unsigned char> Nmea2000Msg::payload |
Definition at line 308 of file comm_navmsg.h.
| N2kPGN Nmea2000Msg::PGN |
Definition at line 307 of file comm_navmsg.h.
| int Nmea2000Msg::priority |
Definition at line 309 of file comm_navmsg.h.