Actual data sent between application and transport layer.
More...
#include <comm_navmsg.h>
|
enum class | State { kOk
, kCannotParse
, kBadChecksum
, kFiltered
} |
|
|
virtual std::string | key () const =0 |
| Return unique key used by observable to notify/listen.
|
|
virtual std::string | to_string () const |
| Return printable string for logging etc without trailing nl.
|
|
virtual std::string | to_vdr () const |
| 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 NavAddr::Bus | GetBusByKey (const std::string &key) |
| Return bus corresponding to given key.
|
|
|
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 |
|
|
| NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src, State _state) |
|
| NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src) |
|
Actual data sent between application and transport layer.
Definition at line 227 of file comm_navmsg.h.
◆ State
◆ NavMsg() [1/2]
NavMsg::NavMsg |
( |
const NavAddr::Bus & |
_bus, |
|
|
std::shared_ptr< const NavAddr > |
src, |
|
|
State |
_state |
|
) |
| |
|
inlineprotected |
◆ NavMsg() [2/2]
NavMsg::NavMsg |
( |
const NavAddr::Bus & |
_bus, |
|
|
std::shared_ptr< const NavAddr > |
src |
|
) |
| |
|
inlineprotected |
◆ GetBusByKey()
NavAddr::Bus NavMsg::GetBusByKey |
( |
const std::string & |
key | ) |
|
|
static |
◆ GetKey()
std::string NavMsg::GetKey |
( |
| ) |
const |
|
inlinevirtual |
◆ key()
virtual std::string NavMsg::key |
( |
| ) |
const |
|
pure virtual |
◆ to_string()
virtual std::string NavMsg::to_string |
( |
| ) |
const |
|
inlinevirtual |
◆ to_vdr()
virtual std::string NavMsg::to_vdr |
( |
| ) |
const |
|
inlinevirtual |
◆ bus
const NavAddr::Bus NavMsg::bus |
◆ created_at
const NavmsgTimePoint NavMsg::created_at |
◆ source
std::shared_ptr<const NavAddr> NavMsg::source |
Source address is set by drivers when receiving, unused and should be empty when sending.
Definition at line 260 of file comm_navmsg.h.
◆ state
const State NavMsg::state |
The documentation for this class was generated from the following files: