OpenCPN Partial API docs
|
NMEA0183 basic parsing common parts: More...
#include <comm_drv_n0183.h>
Public Member Functions | |
CommDriverN0183 (NavAddr::Bus b, const std::string &s) | |
bool | SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override=0 |
virtual const ConnectionParams & | GetParams () const =0 |
void | SetListener (DriverListener &l) override |
Set the entity which will receive incoming data. | |
virtual std::shared_ptr< NavAddr > | GetAddress () |
![]() | |
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 |
Protected Member Functions | |
void | SendToListener (const std::string &payload, DriverListener &listener, const ConnectionParams ¶ms) |
Wrap argument string in NavMsg pointer, forward to listener. | |
![]() | |
AbstractCommDriver (NavAddr::Bus b) | |
AbstractCommDriver (NavAddr::Bus b, const std::string &s) | |
Additional Inherited Members | |
![]() | |
const NavAddr::Bus | bus |
const std::string | iface |
Physical device for 0183, else a unique string. | |
std::unordered_map< std::string, std::string > | attributes |
NMEA0183 basic parsing common parts:
For messages which are not garbage the driver guarantees that
Definition at line 54 of file comm_drv_n0183.h.
CommDriverN0183::CommDriverN0183 | ( | ) |
Definition at line 65 of file comm_drv_n0183.cpp.
CommDriverN0183::CommDriverN0183 | ( | NavAddr::Bus | b, |
const std::string & | s | ||
) |
Definition at line 67 of file comm_drv_n0183.cpp.
|
inlinevirtual |
Definition at line 68 of file comm_drv_n0183.h.
|
overridepure virtual |
Implements AbstractCommDriver.
|
protected |
Wrap argument string in NavMsg pointer, forward to listener.
Definition at line 72 of file comm_drv_n0183.cpp.
|
inlineoverridevirtual |
Set the entity which will receive incoming data.
By default, such data is ignored
Reimplemented from AbstractCommDriver.
Definition at line 66 of file comm_drv_n0183.h.