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

Abstract NMEA0183 drivers common parts. More...

#include <comm_drv_n0183.h>

Inheritance diagram for CommDriverN0183:
AbstractCommDriver CommDriverN0183Net CommDriverN0183Serial

Public Member Functions

 CommDriverN0183 (NavAddr::Bus b, const std::string &s)
 
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override=0
 
void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data. More...
 
virtual std::shared_ptr< NavAddrGetAddress ()
 
void Activate () override
 Register driver in the driver Registry. More...
 
- Public Member Functions inherited from AbstractCommDriver
virtual bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr)=0
 
virtual void Activate ()=0
 Register driver in the driver Registry. More...
 
virtual void SetListener (DriverListener &l)
 Set the entity which will receive incoming data. More...
 
virtual std::pair< CommStatus, std::string > Clone ()
 Create a new virtual interface using a new instance of this driver. More...
 
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. More...
 
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

Abstract NMEA0183 drivers common parts.

Definition at line 34 of file comm_drv_n0183.h.

Constructor & Destructor Documentation

◆ CommDriverN0183() [1/2]

CommDriverN0183::CommDriverN0183 ( )

Definition at line 35 of file comm_drv_n0183.cpp.

◆ CommDriverN0183() [2/2]

CommDriverN0183::CommDriverN0183 ( NavAddr::Bus  b,
const std::string &  s 
)

Definition at line 37 of file comm_drv_n0183.cpp.

◆ ~CommDriverN0183()

CommDriverN0183::~CommDriverN0183 ( )
virtual

Definition at line 40 of file comm_drv_n0183.cpp.

Member Function Documentation

◆ Activate()

void CommDriverN0183::Activate ( )
overridevirtual

Register driver in the driver Registry.

Implements AbstractCommDriver.

Reimplemented in CommDriverN0183Serial.

Definition at line 42 of file comm_drv_n0183.cpp.

◆ GetAddress()

virtual std::shared_ptr< NavAddr > CommDriverN0183::GetAddress ( )
inlinevirtual

Definition at line 46 of file comm_drv_n0183.h.

◆ SendMessage()

virtual bool CommDriverN0183::SendMessage ( std::shared_ptr< const NavMsg msg,
std::shared_ptr< const NavAddr addr 
)
overridepure virtual

Implements AbstractCommDriver.

◆ SetListener()

void CommDriverN0183::SetListener ( DriverListener l)
inlineoverridevirtual

Set the entity which will receive incoming data.

By default, such data is ignored

Reimplemented from AbstractCommDriver.

Definition at line 44 of file comm_drv_n0183.h.


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