ADTF
|
A class that collects the last samples from multiple sample readers. More...
Public Member Functions | |
tResult | CollectFrom (cLastSampleReader &oSampleReader) |
Adds a sample reader to the list of sample readers that data is read from. More... | |
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. More... | |
tResult | GetLastSamples () |
Private Attributes | |
std::vector< cLastSampleReader * > | m_oSampleReaders |
A class that collects the last samples from multiple sample readers.
(for more detail see sample_reader)
Definition at line 62 of file sample_collectors.h.
|
inline |
Adds a sample reader to the list of sample readers that data is read from.
[in] | oSampleReader | The sample reader to read data from. |
ERR_NOERROR | Stream type is valid |
Definition at line 74 of file sample_collectors.h.
References RETURN_NOERROR.
|
inline |
Get the last samples from all sample readers if there is no new data in queue, the last sent data is used.
[in] | pSample | Sample to get from current reader |
[in] | samples | next Sample to get |
ERR_NOERROR | data is valid |
RETURN_IF_FAILED | (ERR_INVALID_ARG) more sample were requested than queues available (to many parameters) |
Definition at line 89 of file sample_collectors.h.
References cLastSamplesCollector::GetLastSamples(), RETURN_ERROR, and RETURN_IF_FAILED.
Referenced by cLastSamplesCollector::GetLastSamples().