Kallisto Linux API
Library for interacting with Kallisto devices
sensor_provider.hpp
Go to the documentation of this file.
1 
42 #ifndef SENSOR_PROVIDER_HPP
43 #define SENSOR_PROVIDER_HPP
44 
45 #include <vector>
46 #include <memory>
47 
48 #include "../../../util/executor/executor.hpp"
49 #include "../../../bluetooth/device/bluetooth_dispatcher.hpp"
50 #include "../synchronization/time_synchronizer.hpp"
51 #include "../../kallisto.hpp"
52 #include "sensor_impl.hpp"
53 
54 namespace kallisto {
55 namespace hardware {
56 
57 class SensorProvider {
58 public:
63 
67  virtual ~SensorProvider();
68 
90  virtual std::vector<std::unique_ptr<SensorImpl> > provide(Kallisto& kallisto, const std::map<std::string, std::vector<uint8_t>>& service_data,
91  const std::map<uint16_t, std::vector<uint8_t> >& manufacturer_data, util::Executor& event_dispatcher, bluetooth::BluetoothDispatcher& bluetooth_dispatcher,
92  TimeSynchronizer& sensor_synchonizer) = 0;
93 };
94 
95 } /* namespace hardware */
96 } /* namespace kallisto */
97 
98 #endif // SENSOR_PROVIDER_HPP
virtual std::vector< std::unique_ptr< SensorImpl > > provide(Kallisto &kallisto, const std::map< std::string, std::vector< uint8_t >> &service_data, const std::map< uint16_t, std::vector< uint8_t > > &manufacturer_data, util::Executor &event_dispatcher, bluetooth::BluetoothDispatcher &bluetooth_dispatcher, TimeSynchronizer &sensor_synchonizer)=0
Definition: time_synchronizer.hpp:56
Definition: bluetooth_adapter.hpp:52
Definition: sensor_provider.hpp:56
Definition: bluetooth_dispatcher.hpp:57
Definition: kallisto.hpp:52
Definition: executor.hpp:71