herald  2.0.0
Public Types | Public Member Functions | List of all members
herald::Context< PlatformT, LoggingSinkT, BluetoothStateManagerT > Struct Template Reference

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::BLESensorConfigurationgetSensorConfiguration ()
 
void setSensorConfiguration (ble::BLESensorConfiguration newConfig)
 
datatype::Date getNow () noexcept
 

Detailed Description

template<typename PlatformT, typename LoggingSinkT, typename BluetoothStateManagerT>
struct herald::Context< PlatformT, LoggingSinkT, BluetoothStateManagerT >

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


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