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

Base interface for sample readers and writers. More...

#include <samplestreamer_intf.h>

Inheritance diagram for ISampleStreamer:
[legend]

Public Member Functions

virtual void SetName (const char *strName)=0
 Sets the name of the streamer.
 
virtual tResult GetName (base::ant::IString &&strName)=0
 Retrieves the name of the streamer.
 
virtual tResult SetType (const ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType)=0
 Sets the initial stream type of a streamer.
 
virtual tResult GetType (ucom::ant::iobject_ptr< const ant::IStreamType > &pStreamType) const =0
 Returns the initial stream type of the streamer.
 
virtual tResult BeginStreaming (ant::ISampleStream &pStream)=0
 Begin streaming on the given sample stream.
 
virtual tResult EndStreaming ()=0
 End streaming.
 
virtual tResult SetStreamerPin (const ucom::ant::iobject_ptr< flash::IStreamerPin > &pStreamerPin)=0
 Sets the pin that the streamer is associated with.
 

Detailed Description

Base interface for sample readers and writers.

Definition at line 129 of file samplestreamer_intf.h.

Member Function Documentation

◆ BeginStreaming()

virtual tResult BeginStreaming ( ant::ISampleStream & pStream)
pure virtual

Begin streaming on the given sample stream.

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

Implemented in cNullReader, cSampleReader, cSampleWriter, cSampleReader, cSampleWriter, writer_with_request_broker< BaseWriter >, writer_with_request_broker< adtf::streaming::cSampleWriter >, and cNullReader.

◆ EndStreaming()

◆ GetName()

virtual tResult GetName ( base::ant::IString && strName)
pure virtual

Retrieves the name of the streamer.

Parameters
[out]strNameThis will be updated with the name.
Returns
Standard result.

Implemented in cNullReader, cSampleReader, cSampleWriter, cSampleReader, cSampleWriter, and cNullReader.

◆ GetType()

virtual tResult GetType ( ucom::ant::iobject_ptr< const ant::IStreamType > & pStreamType) const
pure virtual

Returns the initial stream type of the streamer.

Parameters
[out]pStreamTypeThis will reference the initial stream type.
Returns
Standard result.

Implemented in cNullReader, cSampleReader, cSampleWriter, cSampleReader, cSampleWriter, and cNullReader.

◆ SetName()

virtual void SetName ( const char * strName)
pure virtual

Sets the name of the streamer.

This will be used when creating pins.

Parameters
[in]strNameThe name

Implemented in cNullReader, cSampleReader, cSampleWriter, cSampleReader, cSampleWriter, and cNullReader.

◆ SetStreamerPin()

virtual tResult SetStreamerPin ( const ucom::ant::iobject_ptr< flash::IStreamerPin > & pStreamerPin)
pure virtual

Sets the pin that the streamer is associated with.

Parameters
[in]pStreamerPinThe pin.
Returns
Standard result.

Implemented in cNullReader, cSampleReader, cSampleWriter, and cNullReader.

◆ SetType()