ADTF
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
IStreamingRequestsabstract

Interface for handling streaming requests. More...

#include <streamingrequests_intf.h>

Inheritance diagram for IStreamingRequests:
[legend]

Public Member Functions

 ADTF_IID (IStreamingRequests, "streaming_requests.hollow.streaming.adtf.iid")
 definition of interface id
 
virtual tResult RequestSamples (ucom::ant::iobject_ptr< IStreamingRequest > &pRequest, uint32_t nSubStreamId, const base::ant::IProperties *pRequestProperties=nullptr)=0
 RequestSamples of the given Substream to be generated and/or transmitted.
 
virtual void RegisterStreamTypeHandler (IStreamTypeHandler &oHandler)=0
 Registers a new stream type handler.
 
virtual void UnregisterStreamTypeHandler (IStreamTypeHandler &oHandler)=0
 Unregisters a stream type handler.
 
- Public Member Functions inherited from IObject
 ADTF_IID (IObject, "object.ant.ucom.adtf.iid")
 Marks the IObject to be castable with the ucom_cast()
 

Protected Member Functions

 ~IStreamingRequests ()=default
 not destructable
 
- Protected Member Functions inherited from IObject
 ~IObject ()=default
 Protected destructor --> Only the final implementation can be destroyed!
 

Detailed Description

Interface for handling streaming requests.

Definition at line 57 of file streamingrequests_intf.h.

Member Function Documentation

◆ RegisterStreamTypeHandler()

virtual void RegisterStreamTypeHandler ( IStreamTypeHandler & oHandler)
pure virtual

Registers a new stream type handler.

This will call the IStreamTypeHandler::HandleNewStreamType() method with the current type once and for any later update.

Parameters
[in]oHandlerThe new handler.

◆ RequestSamples()

virtual tResult RequestSamples ( ucom::ant::iobject_ptr< IStreamingRequest > & pRequest,
uint32_t nSubStreamId,
const base::ant::IProperties * pRequestProperties = nullptr )
pure virtual

RequestSamples of the given Substream to be generated and/or transmitted.

Parameters
[out]pRequestKeep this as long as you request samples to be transmitted.
[in]nSubStreamIdThe id of the Substream.
[in]pRequestPropertiesThe request properties. If nullptr, then defaults will be used.
Returns
Standard Result.

◆ UnregisterStreamTypeHandler()

virtual void UnregisterStreamTypeHandler ( IStreamTypeHandler & oHandler)
pure virtual

Unregisters a stream type handler.

Parameters
[in]oHandlerThe new handler.