|
openDAQ
Open data acquisition platform
|
Controls how Reader read call time-outs are handled. More...
Inheritance diagram for GenericReaderPtr< InterfaceType >: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. More... | |
| void | setExternalListener (const daq::InputPortNotificationsPtr &listener) const |
| Sets an external listener to the reader. 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 an external listener to the reader.
| listener | The external listener. |
When an external listener is set, after the reader is done processing the input port notification methods, it also calls the methods of the external listener.
|
inline |
Sets the specified callback function to be called when there is available data in the reader.
| callback | The callback function to be set or nullptr to unset it. |
Pass nullptr to unset the callback. The callback should take no arguments.