Controls how Reader read call time-outs are handled. More...
Controls how Reader read call time-outs are handled.
< When some segments are available return them immediately. When no segments are available return immediately when any arrive or time-out is exceeded.
< Wait for the requested amount or until time-out is exceeded.
A basic signal reader that simplifies accessing the signals's data stream.
Public Member Functions | |
daq::SizeT | getAvailableCount () const |
Gets the number of segments available to read. More... | |
void | setOnDataAvailable (const daq::ProcedurePtr &callback) const |
Sets the specified callback function to be called when there is available data in the reader. Pass nullptr to unset the callback. The callback should take no arguments. More... | |
daq::Bool | getEmpty () const |
Checks if there is data to read. More... | |
|
inline |
Gets the number of segments available to read.
|
inline |
Checks if there is data to read.
|
inline |
Sets the specified callback function to be called when there is available data in the reader. Pass nullptr
to unset the callback. The callback should take no arguments.
callback | The callback function to be set or nullptr to unset it. |