ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
cExternalQueuesWrapper
Inheritance diagram for cExternalQueuesWrapper:
[legend]

Public Member Functions

void RegisterExternalQueue (ISampleReaderQueue *pExternalBuffer)
 
void UnregisterExternalQueue (ISampleReaderQueue *pExternalBuffer)
 
tResult Push (const IStreamItem &oStreamItem, tTimeStamp tsTime) override
 Push a new value to the internal sample queue.
 
void Clear () override
 clears the local queue of the reader either only EndStreaming or incoming event ISampleInStream::IQueueItem::RE_Flush
 
tResult Pop (IStreamItem &) override
 Returns the next sample from the queue.
 

Protected Attributes

std::set< ISampleReaderQueue * > m_oExternalQueues
 A set of other registered buffer.
 

Detailed Description

Definition at line 1023 of file samplereader.h.

Member Function Documentation

◆ Clear()

void Clear ( )
inlineoverridevirtual

clears the local queue of the reader either only EndStreaming or incoming event ISampleInStream::IQueueItem::RE_Flush

Implements ISampleReaderQueue.

Definition at line 1047 of file samplereader.h.

References m_oExternalQueues.

◆ Pop()

tResult Pop ( IStreamItem & oStreamItem)
inlineoverridevirtual

Returns the next sample from the queue.

Parameters
[out]oStreamItemstream item reference to copy the references to

Implements ISampleReaderQueue.

Definition at line 1055 of file samplereader.h.

References RETURN_ERROR.

◆ Push()

tResult Push ( const IStreamItem & oStreamItem,
tTimeStamp tmTime )
inlineoverridevirtual

Push a new value to the internal sample queue.

Parameters
[in]oStreamItemThe sample to store
[in]tmTimeTime of storage

Implements ISampleReaderQueue.

Definition at line 1037 of file samplereader.h.

References m_oExternalQueues, RETURN_IF_FAILED, and RETURN_NOERROR.

◆ RegisterExternalQueue()

void RegisterExternalQueue ( ISampleReaderQueue * pExternalBuffer)
inline

Definition at line 1026 of file samplereader.h.

◆ UnregisterExternalQueue()

void UnregisterExternalQueue ( ISampleReaderQueue * pExternalBuffer)
inline

Definition at line 1031 of file samplereader.h.

Member Data Documentation

◆ m_oExternalQueues

std::set<ISampleReaderQueue*> m_oExternalQueues
protected

A set of other registered buffer.

Definition at line 1062 of file samplereader.h.

Referenced by Clear(), and Push().