OpenCPN Partial API docs
Loading...
Searching...
No Matches
CommDriverN0183Net Class Reference
Inheritance diagram for CommDriverN0183Net:
CommDriverN0183 DriverStatsProvider AbstractCommDriver

Public Member Functions

 CommDriverN0183Net (const ConnectionParams *params, DriverListener &listener)
 
ConnectionParams GetParams () const
 
const wxSocketBase * GetSock () const
 
bool SendMessage (std::shared_ptr< const NavMsg > msg, std::shared_ptr< const NavAddr > addr) override
 
- Public Member Functions inherited from CommDriverN0183
 CommDriverN0183 (NavAddr::Bus b, const std::string &s)
 
void SetListener (DriverListener &l) override
 Set the entity which will receive incoming data.
 
virtual std::shared_ptr< NavAddrGetAddress ()
 
- 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 68 of file comm_drv_n0183_net.h.

Constructor & Destructor Documentation

◆ CommDriverN0183Net()

CommDriverN0183Net::CommDriverN0183Net ( const ConnectionParams params,
DriverListener listener 
)

Definition at line 112 of file comm_drv_n0183_net.cpp.

◆ ~CommDriverN0183Net()

CommDriverN0183Net::~CommDriverN0183Net ( )
override

Definition at line 150 of file comm_drv_n0183_net.cpp.

Member Function Documentation

◆ GetParams()

ConnectionParams CommDriverN0183Net::GetParams ( ) const
inline

Definition at line 76 of file comm_drv_n0183_net.h.

◆ GetSock()

const wxSocketBase * CommDriverN0183Net::GetSock ( ) const
inline

Definition at line 78 of file comm_drv_n0183_net.h.

◆ SendMessage()

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

Implements CommDriverN0183.

Definition at line 362 of file comm_drv_n0183_net.cpp.


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