OpenCPN Partial API docs
Loading...
Searching...
No Matches
DriverListener Interface Referenceabstract

Interface for handling incoming messages. More...

#include "model/comm_driver.h"

Inheritance diagram for DriverListener:
NavMsgBus VoidDriverListener

Public Member Functions

virtual ~DriverListener ()=default
 Destroy the Driver Listener object.
 
virtual void Notify (std::shared_ptr< const NavMsg > message)=0
 Handle a received message.
 
virtual void Notify (const AbstractCommDriver &driver)=0
 Handle driver status change.
 

Detailed Description

Interface for handling incoming messages.

Implemented by transport layer and possible other parties like test code which should handle incoming messages

Definition at line 52 of file comm_driver.h.

Member Function Documentation

◆ Notify() [1/2]

virtual void DriverListener::Notify ( const AbstractCommDriver driver)
pure virtual

Handle driver status change.

Implemented in NavMsgBus.

◆ Notify() [2/2]

virtual void DriverListener::Notify ( std::shared_ptr< const NavMsg message)
pure virtual

Handle a received message.

Implemented in NavMsgBus.


The documentation for this interface was generated from the following file: