|
herald
2.0.0
|
Compile-time Context class, customisable via template traits. Provides generic access to OS system features. More...
#include <context.h>
Public Types | |
| using | logging_sink_type = LoggingSinkT |
Public Member Functions | |
| Context (PlatformT &platform, LoggingSinkT &sink, BluetoothStateManagerT &bsm) noexcept | |
| Context (const Context &other) noexcept | |
| Context< PlatformT, LoggingSinkT, BluetoothStateManagerT > & | operator= (Context &other) noexcept |
| LoggingSinkT & | getLoggingSink () |
| BluetoothStateManagerT & | getBluetoothStateManager () |
| PlatformT & | getPlatform () |
| const ble::BLESensorConfiguration & | getSensorConfiguration () |
| void | setSensorConfiguration (ble::BLESensorConfiguration newConfig) |
| datatype::Date | getNow () noexcept |
Compile-time Context class, customisable via template traits. Provides generic access to OS system features.
Covers all cross-cutting concerns methods and helpers to prevent tight coupling between components Currently hard-coded to include Bluetooth relevant radio, but this should be abstracted in future to compile out if Bluetooth support is not needed