ADTF
|
This is the default implementation of IStreamingRequests used by requestable_writer. More...
Public Member Functions | |
cRequestBroker (cSampleWriter *pWriter=nullptr) | |
Default constructor. More... | |
~cRequestBroker () override | |
Destructor. | |
void | SetCallbacks (std::function< void(uint32_t, const base::IProperties *)> fnEnable, std::function< void(uint32_t)> fnDisable) |
Sets the callbacks for enabling and disabling specific Substreams. More... | |
void | UpdateType (const ucom::ant::iobject_ptr< const IStreamType > &pType) |
Call this when you updated your Substreams type. More... | |
void | DisableCurrentRequests (bool bCallDisableCallback=false) |
This will disable all current requests. More... | |
tResult | RequestSamples (ucom::ant::iobject_ptr< IStreamingRequest > &pRequest, uint32_t nSubStreamId, const base::ant::IProperties *pRequestProperties=nullptr) override |
void | RegisterStreamTypeHandler (IStreamTypeHandler &oHandler) override |
void | UnregisterStreamTypeHandler (IStreamTypeHandler &oHandler) override |
![]() | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. More... | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. More... | |
void | Destroy () const override |
Destruct and deallocate instantiations of type IObject . More... | |
![]() | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Private Attributes | |
std::unique_ptr< cImplementation > | m_pImplementation |
Additional Inherited Members | |
![]() | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
This is the default implementation of IStreamingRequests used by requestable_writer.
Definition at line 27 of file requestable_writer.h.
cRequestBroker | ( | cSampleWriter * | pWriter = nullptr | ) |
Default constructor.
[in] | pWriter | The writer instance that this broker is associated with. This is used for error handling. |
void DisableCurrentRequests | ( | bool | bCallDisableCallback = false | ) |
This will disable all current requests.
[in] | bCallDisableCallback | if true, the callback for disabling Substreams will be called for each currently enabled Substream. |
void SetCallbacks | ( | std::function< void(uint32_t, const base::IProperties *)> | fnEnable, |
std::function< void(uint32_t)> | fnDisable | ||
) |
Sets the callbacks for enabling and disabling specific Substreams.
[in] | fnEnable | This is called when the first consumer requests a specific Substream. |
[in] | fnDisable | This is called when the last consumer cancels its request for a Substream. |
void UpdateType | ( | const ucom::ant::iobject_ptr< const IStreamType > & | pType | ) |
Call this when you updated your Substreams type.
[in] | pType | The new Stream Type. |