ADTF
Loading...
Searching...
No Matches
adtf::streaming::vision::cRequestForwardingWriter Class Reference

#include <request_forwarding.h>

Inherits page_examples_timestamp_synchronizer, and adtf::streaming::flash::cSampleWriter.

Public Member Functions

tResult SetSource (const adtf::ucom::iobject_ptr< adtf::streaming::IBindingProxy > &pSource)
 
tResult BeginStreaming (adtf::streaming::ISampleStream &oSampleStream) override
 
tResult EndStreaming () override
 
- Public Member Functions inherited from adtf::streaming::flash::cSampleWriter
void SetName (const char *strName) override
 
tResult GetName (base::ant::IString &&strName) override
 
tResult SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) override
 
tResult GetType (ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const override
 
tResult BeginStreaming (ISampleStream &oSampleStream) override
 
tResult EndStreaming () override
 
tResult SetStreamerPin (const ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) override
 
tResult GetStreamerPin (ucom::ant::iobject_ptr< IStreamerPin > &pStreamerPin) const
 
tResult Write (const ucom::ant::iobject_ptr< const ant::ISample > &pSample) override
 
virtual tResult Transmit (const ucom::ant::iobject_ptr< const ant::ISample > &pSample)
 
tResult ChangeType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) override
 
tResult Flush () override
 
tResult SetStreamError (tResult oError) override
 
tResult ManualTrigger (base::flash::tNanoSeconds tmActivationTime=base::flash::tNanoSeconds{-1}) override
 

Detailed Description

Writer implementation that forwards substream requests to its connected source.

This writer extends adtf::streaming::flash::cSampleWriter and is designed to forward substream requests directly to the connected source stream. It is typically used in conjunction with a request_forwarding_reader, which sets up the forwarding relationship.

See also
request_forwarding_reader
Example Timestamp Synchronizer

Member Function Documentation

◆ BeginStreaming()

tResult adtf::streaming::vision::cRequestForwardingWriter::BeginStreaming ( adtf::streaming::ISampleStream & pStream)
overridevirtual

Begin streaming on the given sample stream.

Parameters
[in]pStreamthe sample stream.
Returns
Standard result.

Implements adtf::streaming::flash::ISampleStreamer.

◆ EndStreaming()

tResult adtf::streaming::vision::cRequestForwardingWriter::EndStreaming ( )
overridevirtual

End streaming

Returns
Standard result.

Implements adtf::streaming::flash::ISampleStreamer.

◆ SetSource()

tResult adtf::streaming::vision::cRequestForwardingWriter::SetSource ( const adtf::ucom::iobject_ptr< adtf::streaming::IBindingProxy > & pSource)

Sets the source proxy that this writer forwards requests to.

Parameters
[in]pSourceThe binding proxy representing the source stream.
Returns
Standard result.
Return values
ERR_NOERRORif the source was successfully assigned.
ERR_INVALID_ARGif the pointer is invalid.

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