|
Tezzeret
1
Tezzeret
|
The root class for sensors and event sources. More...
#include <GmSensor.hpp>

Public Member Functions | |
| virtual int | WriteToStorage (UInt32 ui32Topic, char *pData, UInt32 iSize, GmStorage *psStorage, UInt32 ui32FormatId)=0 |
| void | SetSensorId (int iSensorId) |
| int | GetSensorId () |
Protected Attributes | |
| int | m_iSensorId |
The root class for sensors and event sources.
|
pure virtual |
Virtual function, abstract in this class, called when a sensor should write its data to a storage or other event handler.
| ui32Topic | Hint to the storage (MQTT is one) about adding some topic or header information about the data. Not all storages use the hint. |
| pData | The data to be written. |
| iSize | Size of the data to be written. |
| psStorage | Storage or event handler to which the data will be written. |
| ui32FormatId | Formatting information to be used by the sensor. Within a single application, a sensor might be asked to write different formats to different storages or event handlers. Very likely the per-storage, per-mode information was stored in an instance of Geometrics::SensorStorageModeInfo. |
Implemented in Geometrics::CTivaGpsUartSensor, Geometrics::GmPpsEventSensor, Geometrics::GmMfamDataSource, Geometrics::GmCm221, Geometrics::GmAppEventSource, and Geometrics::Gm862Emulator.