Kallisto Linux API
Library for interacting with Kallisto devices
KallistoEventListener Class Referenceabstract

#include <kallisto_event_listener.hpp>

Inheritance diagram for KallistoEventListener:

Public Member Functions

 KallistoEventListener ()
 
virtual void onLinkLoss (std::chrono::nanoseconds timestamp, Kallisto &device)
 
virtual void onLinkRecovered (std::chrono::nanoseconds timestamp, Kallisto &device)
 
virtual void onLinkRemoved (std::chrono::nanoseconds timestamp, Kallisto &device)=0
 

Protected Member Functions

virtual ~KallistoEventListener ()
 

Detailed Description

Callback listener interface for sensor events.

Constructor & Destructor Documentation

◆ ~KallistoEventListener()

virtual ~KallistoEventListener ( )
protectedvirtual

Destructor.

◆ KallistoEventListener()

Constructor

Member Function Documentation

◆ onLinkLoss()

virtual void onLinkLoss ( std::chrono::nanoseconds  timestamp,
Kallisto device 
)
virtual

Called when the connection to a device under use is lost.

Parameters
timestampThe time at which the event happened in nanoseconds since the epoch.
deviceThe device that generated the event.

Reimplemented in KallistoCoreImpl.

◆ onLinkRecovered()

virtual void onLinkRecovered ( std::chrono::nanoseconds  timestamp,
Kallisto device 
)
virtual

Called when the connection to a device under use is recovered.

Parameters
timestampThe time at which the event happened in nanoseconds since the epoch.
deviceThe device that generated the event.

Reimplemented in KallistoCoreImpl.

◆ onLinkRemoved()

virtual void onLinkRemoved ( std::chrono::nanoseconds  timestamp,
Kallisto device 
)
pure virtual

Called when there is a timeout while waiting for connection recovery.

Parameters
timestampThe time at which the event happened in nanoseconds since the epoch.
deviceThe device that generated the event.

Implemented in KallistoCoreImpl.


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