ADTF
Loading...
Searching...
No Matches
adtf::streaming::ant::cLastSamplesCollector Class Reference

#include <sample_collectors.h>

Public Member Functions

tResult CollectFrom (cLastSampleReader &oSampleReader)
 Adds a sample reader to the list of sample readers that data is read from.
 
template<typename ... T>
tResult GetLastSamples (adtf::ucom::iobject_ptr< const ISample > &pSample, T &... samples)
 Get the last samples from all sample readers if there is no new data in queue, the last sent data is used.
 
tResult GetLastSamples ()
 

Detailed Description

A class that collects the last samples from multiple sample readers.

(for more detail see sample_reader)

Member Function Documentation

◆ CollectFrom()

tResult adtf::streaming::ant::cLastSamplesCollector::CollectFrom ( cLastSampleReader & oSampleReader)
inline

Adds a sample reader to the list of sample readers that data is read from.

Parameters
[in]oSampleReaderThe sample reader to read data from.
Return values
ERR_NOERRORStream type is valid

◆ GetLastSamples()

template<typename ... T>
tResult adtf::streaming::ant::cLastSamplesCollector::GetLastSamples ( adtf::ucom::iobject_ptr< const ISample > & pSample,
T &... samples )
inline

Get the last samples from all sample readers if there is no new data in queue, the last sent data is used.

Parameters
[in]pSampleSample to get from current reader
[in]samplesnext Sample to get
Return values
ERR_NOERRORdata is valid
RETURN_IF_FAILED(ERR_INVALID_ARG) more sample were requested than queues available (to many parameters)

The documentation for this class was generated from the following file: