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

#include <time_synchronizer.hpp>

Inheritance diagram for TimeSynchronizer:
Collaboration diagram for TimeSynchronizer:

Public Member Functions

 TimeSynchronizer (bluetooth::BluetoothDispatcher &dispatcher)
 
virtual ~TimeSynchronizer ()
 
virtual error::KallistoDetailedResult sync ()=0
 
virtual error::KallistoDetailedResult syncSensorEvent (Sensor &sensor, SensorEvent &event)=0
 

Protected Member Functions

 TimeSynchronizer (TimeSynchronizer const &)=delete
 
 TimeSynchronizer (TimeSynchronizer &&)=delete
 
void operator= (TimeSynchronizer const &)=delete
 
void operator= (TimeSynchronizer &&)=delete
 

Protected Attributes

bluetooth::BluetoothDispatcherm_dispatcher
 

Detailed Description

Interface for Time Synchronization.

Constructor & Destructor Documentation

◆ TimeSynchronizer() [1/2]

TimeSynchronizer ( TimeSynchronizer const &  )
protecteddelete

Remove copy and move.

◆ TimeSynchronizer() [2/2]

Constructor.

◆ ~TimeSynchronizer()

virtual ~TimeSynchronizer ( )
virtual

Destructor.

Member Function Documentation

◆ sync()

virtual error::KallistoDetailedResult sync ( )
pure virtual

Triggers a new sync. Called when a connection is established to the device.

Returns
A detailed result.

◆ syncSensorEvent()

virtual error::KallistoDetailedResult syncSensorEvent ( Sensor sensor,
SensorEvent event 
)
pure virtual

Called ther is a new sensor event that should be synchronized.

Parameters
eventThe sensor event to be synchronized.
Returns
A detailed result.

Implemented in TimeAjustSynchronizer.

Field Documentation

◆ m_dispatcher

bluetooth::BluetoothDispatcher* m_dispatcher
protected

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