herald  2.0.0
default_sensor_delegate.h
1 // Copyright 2020-2021 Herald Project Contributors
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #ifndef HERALD_DEFAULT_SENSOR_DELEGATE_H
6 #define HERALD_DEFAULT_SENSOR_DELEGATE_H
7 
8 #include "sensor_delegate.h"
9 
10 namespace herald {
11 
15 public:
16  DefaultSensorDelegate() noexcept = default;
17  ~DefaultSensorDelegate() noexcept = default;
18 
19  // Note: Now commented out as SensorDelegateSet dynamically checks for presence of the callback (more efficient)
20 
21  // /// Detection of a target with an ephemeral identifier, e.g. BLE central detecting a BLE peripheral.
22  // void sensor(SensorType sensor, const TargetIdentifier& didDetect);
23 
24  // /// Read payload data from target, e.g. encrypted device identifier from BLE peripheral after successful connection.
25  // void sensor(SensorType sensor, const PayloadData& didRead, const TargetIdentifier& fromTarget);
26 
27  // /// Receive written immediate send data from target, e.g. important timing signal.
28  // void sensor(SensorType sensor, const ImmediateSendData& didReceive, const TargetIdentifier& fromTarget);
29 
30  // /// Read payload data of other targets recently acquired by a target, e.g. Android peripheral sharing payload data acquired from nearby iOS peripherals.
31  // void sensor(SensorType sensor, const std::vector<PayloadData>& didShare, const TargetIdentifier& fromTarget);
32 
33  // /// Measure proximity to target, e.g. a sample of RSSI values from BLE peripheral.
34  // void sensor(SensorType sensor, const Proximity& didMeasure, const TargetIdentifier& fromTarget);
35 
36  // /// Detection of time spent at location, e.g. at specific restaurant between 02/06/2020 19:00 and 02/06/2020 21:00
37  // template <typename LocationT>
38  // void sensor(SensorType sensor, const Location<LocationT>& didVisit);
39 
40  // /// Measure proximity to target with payload data. Combines didMeasure and didRead into a single convenient delegate method
41  // void sensor(SensorType sensor, const Proximity& didMeasure, const TargetIdentifier& fromTarget, const PayloadData& withPayload);
42 
43  // /// Sensor state update
44  // void sensor(SensorType sensor, const SensorState& didUpdateState);
45 };
46 
47 
48 
49 
50 } // end namespace
51 
52 #endif
Default implementation that provides implementations for each delegate callback.
Definition: default_sensor_delegate.h:14
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15