OpenCPN Partial API docs
Loading...
Searching...
No Matches
Nmea2000Msg Class Reference

See: https://github.com/OpenCPN/OpenCPN/issues/2729#issuecomment-1179506343. More...

#include <comm_navmsg.h>

Inheritance diagram for Nmea2000Msg:
NavMsg KeyProvider

Public Member Functions

 Nmea2000Msg (const uint64_t _pgn)
 
 Nmea2000Msg (const uint64_t _pgn, std::shared_ptr< const NavAddr > src)
 
 Nmea2000Msg (const uint64_t _pgn, const std::vector< unsigned char > &_payload, std::shared_ptr< const NavAddr > src)
 
std::string key () const
 
std::string to_string () const
 Print "bus key id payload". More...
 
- Public Member Functions inherited from NavMsg
virtual std::string key () const =0
 
virtual std::string to_string () const
 
std::string GetKey () const
 Return key used to listen and notify. More...
 
virtual std::string GetKey () const =0
 Return key used to listen and notify. More...
 

Public Attributes

N2kPGN PGN
 
std::vector< unsigned char > payload
 
- Public Attributes inherited from NavMsg
const NavAddr::Bus bus
 
std::shared_ptr< const NavAddrsource
 

Additional Inherited Members

- Protected Member Functions inherited from NavMsg
 NavMsg (const NavAddr::Bus &_bus, std::shared_ptr< const NavAddr > src)
 

Detailed Description

Constructor & Destructor Documentation

◆ Nmea2000Msg() [1/3]

Nmea2000Msg::Nmea2000Msg ( const uint64_t  _pgn)
inline

Definition at line 219 of file comm_navmsg.h.

◆ Nmea2000Msg() [2/3]

Nmea2000Msg::Nmea2000Msg ( const uint64_t  _pgn,
std::shared_ptr< const NavAddr src 
)
inline

Definition at line 222 of file comm_navmsg.h.

◆ Nmea2000Msg() [3/3]

Nmea2000Msg::Nmea2000Msg ( const uint64_t  _pgn,
const std::vector< unsigned char > &  _payload,
std::shared_ptr< const NavAddr src 
)
inline

Definition at line 225 of file comm_navmsg.h.

Member Function Documentation

◆ key()

std::string Nmea2000Msg::key ( ) const
inlinevirtual

Implements NavMsg.

Definition at line 231 of file comm_navmsg.h.

◆ to_string()

std::string Nmea2000Msg::to_string ( ) const
virtual

Print "bus key id payload".

Reimplemented from NavMsg.

Definition at line 79 of file comm_navmsg.cpp.

Member Data Documentation

◆ payload

std::vector<unsigned char> Nmea2000Msg::payload

Definition at line 237 of file comm_navmsg.h.

◆ PGN

N2kPGN Nmea2000Msg::PGN

Definition at line 236 of file comm_navmsg.h.


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