OpenCPN Partial API docs
Loading...
Searching...
No Matches
NavMsg Class Referenceabstract

Actual data sent between application and transport layer. More...

#include <comm_navmsg.h>

Inheritance diagram for NavMsg:
KeyProvider Nmea0183Msg Nmea2000Msg NullNavMsg PluginMsg SignalkMsg

Public Member Functions

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.
 
std::string GetKey () const
 Alias for key().
 

Public Attributes

const NavAddr::Bus bus
 
std::shared_ptr< const NavAddrsource
 Source address is set by drivers when receiving, unused and should be empty when sending.
 

Protected Member Functions

 NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src)
 

Detailed Description

Actual data sent between application and transport layer.

Definition at line 212 of file comm_navmsg.h.

Constructor & Destructor Documentation

◆ NavMsg()

NavMsg::NavMsg ( const NavAddr::Bus &  _bus,
std::shared_ptr< const NavAddr src 
)
inlineprotected

Definition at line 236 of file comm_navmsg.h.

Member Function Documentation

◆ GetKey()

std::string NavMsg::GetKey ( ) const
inlinevirtual

Alias for key().

Implements KeyProvider.

Definition at line 225 of file comm_navmsg.h.

◆ key()

virtual std::string NavMsg::key ( ) const
pure virtual

Return unique key used by observable to notify/listen.

Implemented in Nmea2000Msg, Nmea0183Msg, PluginMsg, SignalkMsg, and NullNavMsg.

◆ to_string()

virtual std::string NavMsg::to_string ( ) const
inlinevirtual

Return printable string for logging etc without trailing nl.

Reimplemented in Nmea2000Msg, Nmea0183Msg, and PluginMsg.

Definition at line 220 of file comm_navmsg.h.

Member Data Documentation

◆ bus

const NavAddr::Bus NavMsg::bus

Definition at line 227 of file comm_navmsg.h.

◆ 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 233 of file comm_navmsg.h.


The documentation for this class was generated from the following file: