OpenCPN Partial API docs
Loading...
Searching...
No Matches
CommDriverSignalK Class Reference
Inheritance diagram for CommDriverSignalK:
AbstractCommDriver CommDriverSignalKNet

Public Member Functions

 CommDriverSignalK (const std::string &s="sk0")
 
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
 
virtual void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data.
 
virtual std::shared_ptr< NavAddrGetAddress (const NavAddrSignalK &name)
 
- Public Member Functions inherited from AbstractCommDriver
virtual std::pair< CommStatus, std::string > Clone ()
 Create a new virtual interface using a new instance of this driver.
 
std::string Key () const
 
virtual std::unordered_map< std::string, std::string > GetAttributes () const
 

Additional Inherited Members

- Public Attributes inherited from AbstractCommDriver
const NavAddr::Bus bus
 
const std::string iface
 Physical device for 0183, else a unique string.
 
std::unordered_map< std::string, std::string > attributes
 
- Protected Member Functions inherited from AbstractCommDriver
 AbstractCommDriver (NavAddr::Bus b)
 
 AbstractCommDriver (NavAddr::Bus b, const std::string &s)
 

Detailed Description

Definition at line 32 of file comm_drv_signalk.h.

Constructor & Destructor Documentation

◆ CommDriverSignalK()

CommDriverSignalK::CommDriverSignalK ( const std::string &  s = "sk0")

Definition at line 33 of file comm_drv_signalk.cpp.

◆ ~CommDriverSignalK()

CommDriverSignalK::~CommDriverSignalK ( )
virtual

Definition at line 36 of file comm_drv_signalk.cpp.

Member Function Documentation

◆ GetAddress()

std::shared_ptr< NavAddr > CommDriverSignalK::GetAddress ( const NavAddrSignalK name)
virtual

Definition at line 45 of file comm_drv_signalk.cpp.

◆ SendMessage()

bool CommDriverSignalK::SendMessage ( std::shared_ptr< const NavMsg msg,
std::shared_ptr< const NavAddr addr 
)
overridevirtual

Implements AbstractCommDriver.

Definition at line 38 of file comm_drv_signalk.cpp.

◆ SetListener()

void CommDriverSignalK::SetListener ( DriverListener l)
overridevirtual

Set the entity which will receive incoming data.

By default, such data is ignored

Reimplemented from AbstractCommDriver.

Definition at line 43 of file comm_drv_signalk.cpp.


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