
Classes | |
| struct | DataEvent |
Public Types | |
| using | DataEventReadCallback = dw::core::Function< bool(DataEvent &)> |
| enum class | DataEventType { PRODUCE , DROP , NONE } |
| using | DataEventWriteCallback = dw::core::Function< void(DataEvent)> |
Public Member Functions | |
| virtual dwStatus | isVirtual (bool *isVirtualBool)=0 |
| distinguishes between a live and virtual sensor More... | |
| virtual dwStatus | setAffinityMask (uint)=0 |
| Sets the affinity mask of the sensor. More... | |
| virtual dwStatus | setDataEventReadCallback (DataEventReadCallback cb)=0 |
| Set read timestamp function for dataset replay. Timestamps not in the sequence returned by the callback will be dropped. More... | |
| virtual dwStatus | setDataEventWriteCallback (DataEventWriteCallback cb)=0 |
| Set write timestamp function for live case. Each timestamp of data output from the node will be passed to this callback. More... | |
| virtual dwStatus | setEndTime (dwTime_t)=0 |
| Set end timestamp for dataset replay. More... | |
| virtual dwStatus | setStartTime (dwTime_t)=0 |
| Set start timestamp for dataset replay. More... | |
| virtual dwStatus | setThreadPriority (int)=0 |
| Sets the thread priority of the sensor. More... | |
| virtual dwStatus | start ()=0 |
| Start the sensor. More... | |
| virtual dwStatus | stop ()=0 |
| Stop the sensor. More... | |
| struct dw::framework::ISensorNode::DataEvent |
| Class Members | ||
|---|---|---|
| DataEventType | dataEventType |
The type of event |
| dwStatus | status |
The status of the node-run. invalid if dataEventType is DROP DW_SUCCESS if the node-run produced data. DW_TIME_OUT, DW_NOT_AVAILABLE, etc, sensor had not data for node-run. DW_END_OF_STREAM if sensor reached end of stream. |
| dwTime_t | timestamp |
The timestamp of involved data. invalid if dataEventType is NONE. |
| using dw::framework::ISensorNode::DataEventReadCallback = dw::core::Function<bool(DataEvent&)> |
| using dw::framework::ISensorNode::DataEventWriteCallback = dw::core::Function<void(DataEvent)> |
|
strong |
|
pure virtual |
distinguishes between a live and virtual sensor
Implemented in dw::framework::SimpleSensorNode, and dw::framework::ExceptionSafeSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::isVirtual().
|
pure virtual |
Sets the affinity mask of the sensor.
Implemented in dw::framework::ExceptionSafeSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setAffinityMask().
|
pure virtual |
Set read timestamp function for dataset replay. Timestamps not in the sequence returned by the callback will be dropped.
Implemented in dw::framework::ExceptionSafeSensorNode, and dw::framework::SimpleSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setDataEventReadCallback().
|
pure virtual |
Set write timestamp function for live case. Each timestamp of data output from the node will be passed to this callback.
Implemented in dw::framework::ExceptionSafeSensorNode, and dw::framework::SimpleSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setDataEventWriteCallback().
|
pure virtual |
Set end timestamp for dataset replay.
Implemented in dw::framework::ExceptionSafeSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setEndTime().
|
pure virtual |
Set start timestamp for dataset replay.
Implemented in dw::framework::ExceptionSafeSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setStartTime().
|
pure virtual |
Sets the thread priority of the sensor.
Implemented in dw::framework::ExceptionSafeSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::setThreadPriority().
|
pure virtual |
Start the sensor.
Implemented in dw::framework::ExceptionSafeSensorNode, and dw::framework::SimpleSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::start().
|
pure virtual |
Stop the sensor.
Implemented in dw::framework::ExceptionSafeSensorNode, and dw::framework::SimpleSensorNode.
Referenced by dw::framework::ExceptionSafeSensorNode::stop().