#include <DataSaver_mock.h>
|
| int | saveDataPoint (const DataPoint &dp, uint8_t name) override |
| | Persist a data point with a source identifier.
|
| void | clear () |
| void | assertSaveDataPointCalledWith (const DataPoint &expectedDp, uint8_t expectedName) |
| virtual int | saveDataPoint (float data, uint32_t timestamp_ms, uint8_t name) final |
| | Convenience overload to construct and save a data point.
|
| virtual bool | begin () |
| | Optional hook for initialization.
|
| virtual void | launchDetected (uint32_t launchTimestamp_ms) |
| | Notification that launch has been detected.
|
Definition at line 10 of file DataSaver_mock.h.
◆ assertSaveDataPointCalledWith()
| void DataSaverMock::assertSaveDataPointCalledWith |
( |
const DataPoint & | expectedDp, |
|
|
uint8_t | expectedName ) |
|
inline |
◆ clear()
| void DataSaverMock::clear |
( |
| ) |
|
|
inline |
◆ saveDataPoint()
| int DataSaverMock::saveDataPoint |
( |
const DataPoint & | dp, |
|
|
uint8_t | name ) |
|
inlineoverridevirtual |
Persist a data point with a source identifier.
- Parameters
-
| dp | Data point to store. |
| name | 8-bit identifier (sensor/channel) saved alongside the value. |
- Note
- When to use: primary write path for subclasses; implement in each concrete saver.
Implements IDataSaver.
Definition at line 17 of file DataSaver_mock.h.
◆ saveDataPointCalls
| std::vector<std::pair<DataPoint, uint8_t> > DataSaverMock::saveDataPointCalls |
The documentation for this class was generated from the following file: