herald  2.0.0
concrete_ble_transmitter.h
1 // Copyright 2020-2021 Herald Project Contributors
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #ifndef HERALD_DEFAULT_BLE_CONCRETE_TRANSMITTER_H
6 #define HERALD_DEFAULT_BLE_CONCRETE_TRANSMITTER_H
7 
8 #include "../ble_database.h"
9 #include "../ble_receiver.h"
10 #include "../ble_sensor.h"
11 #include "../ble_transmitter.h"
12 #include "../ble_concrete.h"
13 #include "../ble_protocols.h"
14 #include "../bluetooth_state_manager.h"
15 #include "../ble_device_delegate.h"
16 #include "../filter/ble_advert_parser.h"
17 #include "../../payload/payload_data_supplier.h"
18 #include "../../context.h"
19 #include "../../data/sensor_logger.h"
20 #include "../ble_sensor_configuration.h"
21 #include "../ble_coordinator.h"
22 #include "../../datatype/bluetooth_state.h"
23 
24 // C++17 includes
25 #include <algorithm>
26 #include <optional>
27 #include <cstring>
28 
29 namespace herald {
30 namespace ble {
31 
32 using namespace herald::datatype;
33 using namespace herald::ble::filter;
34 using namespace herald::payload;
35 
36 
38 template <typename ContextT, typename PayloadDataSupplierT, typename BLEDatabaseT, typename SensorDelegateSetT>
40 public:
41  ConcreteBLETransmitter(ContextT& ctx, BluetoothStateManager& bluetoothStateManager,
42  PayloadDataSupplierT& payloadDataSupplier, BLEDatabaseT& bleDatabase, SensorDelegateSetT& dels) {}
43 
44  ConcreteBLETransmitter(const ConcreteBLETransmitter& from) = delete;
46 
48 
49  // Coordination overrides - Since v1.2-beta3
50  std::optional<std::reference_wrapper<CoordinationProvider>> coordinationProvider() {
51  return {};
52  }
53 
54  // Sensor overrides
55  void start() {}
56 
57  void stop() {}
58 
59 };
60 
61 }
62 }
63 
64 #endif
Definition: bluetooth_state_manager.h:19
Dummy implementation of a ConcreteBLETransmitter that does nothing (used for testing)
Definition: concrete_ble_transmitter.h:39
Contains all low-level Herald datatype implementations.
Definition: base64_string.h:14
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15