|
ADTF Qt5
|
#include <reader.h>
Inherits QObject.
Public Member Functions | |
| Q_INVOKABLE QVariant | getNextSample () |
| Q_INVOKABLE QVariant | getLastSample () |
| Q_INVOKABLE void | requestSamples (const QVariant &oSubStreamFilter) |
| Q_INVOKABLE void | cancelRequest (const QVariant &oSubStreamFilter) |
Properties | |
| QVariantList | requests |
A Reader that is returned by cScriptFilter::createInputPin.
Samples returned by getNextSample(), getLastSample() and passed via the sample() signal contain the following elements:
Please keep in mind that when you do not connect a callback to at least one of trigger() or sample(), all incoming samples will be discarded.
| Q_INVOKABLE void adtf::javascript::scripting::cScriptReader::cancelRequest | ( | const QVariant & | oSubStreamFilter | ) |
Cancels a request for samples from a given Substream. If a Substream has been requested multiple times, all requests must be canceled individually.
| [in] | oSubStreamFilter | The substream. Request can be of type QString or QRegularExpression. Must be a request that has been made before. |
| Q_INVOKABLE QVariant adtf::javascript::scripting::cScriptReader::getLastSample | ( | ) |
Returns the last available sample.
| Q_INVOKABLE QVariant adtf::javascript::scripting::cScriptReader::getNextSample | ( | ) |
Returns the next available sample.
| Q_INVOKABLE void adtf::javascript::scripting::cScriptReader::requestSamples | ( | const QVariant & | oSubStreamFilter | ) |
Request samples from Substreams matching the filter by name.
| [in] | oSubStreamFilter | The Substream. Request can be of type QString or QRegularExpression. |
|
read |
List of currently active requests for Substreams. All list entries are of type QString or QRegularExpression.# Use requestSamples and cancelRequest to manipulate this list.