Helper template to implement a ISampleStream or a ISampleStream derived interface. More...
#include <samplestream.h>
Public Member Functions | |
sample_stream (const char *strName) | |
tResult | SetName (const char *strName) override |
tResult | SetParent (const ucom::ant::IObject *oParentObject) override |
tResult | Open (const char *strName, adtf::ucom::ant::iobject_ptr< ISampleInStream > &pInStream, const adtf::ucom::ant::iobject_ptr< const IStreamType > &pInitialAcceptedStreamType, ISampleStream::IPushReadEventSink *&pPushEventSink, ISampleStreamAccess::tMode ui32Mode, size_t szQueueSize) override |
tResult | Open (const char *strName, adtf::ucom::ant::iobject_ptr< ISampleOutStream > &pOutStream, ISampleStreamAccess::tMode ui32Mode, size_t szQueueSize) override |
tResult | GetType (adtf::ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const override |
tTimeStamp | GetTime () const override |
Returns the last flush time and so the current position of the stream. | |
tResult | SetStreamError (const tResult &oError) override |
Sets and forwards a StreamError to the readers. | |
tResult | AttachRouting (const adtf::ucom::ant::iobject_ptr< ISampleStream > &pSampleStreamTo) override |
Attaches a SampleStream where to route the Write / Flush and Run calls to. | |
tResult | DetachRouting (const adtf::ucom::ant::iobject_ptr< ISampleStream > &pSampleStreamTo) override |
Detaches a SampleStream where the routing was set by AttachRouting. | |
![]() | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. | |
void | Destroy () const override |
Switch from non-virtual destructor to virtual destructor. | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. | |
void | Destroy () const override |
Switch from non-virtual destructor to virtual destructor. | |
tResult | GetInterface (const char *i_strIID, void *&o_pInterface) override |
Query interfaces on an object. | |
tResult | GetInterface (const char *i_strIID, const void *&o_pInterface) const override |
Provides const correct interface querying. | |
void | Destroy () const override |
Switch from non-virtual destructor to virtual destructor. | |
![]() | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() | |
Protected Member Functions | |
sample_stream (sample_stream &&)=delete | |
sample_stream (const sample_stream &)=delete | |
sample_stream & | operator= (sample_stream &&)=delete |
sample_stream & | operator= (const sample_stream &)=delete |
![]() | |
~IObject ()=default | |
Protected destructor --> Only the final implementation can be destroyed! | |
Private Types | |
typedef named_graph_object< trigger_pipe_item< INTERFACE > > | base_type |
Helper template to implement a ISampleStream or a ISampleStream derived interface.
INTERFACE | Interface type of a ISampleStream interface. |
Definition at line 153 of file samplestream.h.
|
private |
Definition at line 155 of file samplestream.h.
|
inline |
Definition at line 164 of file samplestream.h.
|
inline |
Definition at line 168 of file samplestream.h.
|
inlineoverride |
Attaches a SampleStream where to route the Write / Flush and Run calls to.
This will automatically opens one writer of pSampleStreamTo
and forwards the writers queue.
[in] | pSampleStreamTo | SampleStream where to root the writer queue to. |
Definition at line 233 of file samplestream.h.
References cSampleStreamBase::AttachRouting().
|
inlineoverride |
Detaches a SampleStream where the routing was set by AttachRouting.
[in] | pSampleStreamTo | SampleStream to detach. |
ERR_NOT_FOUND | The SampleStream given by pSampleStreamTo is not attached. |
Definition at line 238 of file samplestream.h.
References cSampleStreamBase::DetachRouting().
|
inlineoverride |
Returns the last flush time and so the current position of the stream.
Definition at line 223 of file samplestream.h.
References cSampleStreamBase::GetTime().
|
inlineoverride |
Definition at line 214 of file samplestream.h.
|
inlineoverride |
Definition at line 186 of file samplestream.h.
|
inlineoverride |
Definition at line 202 of file samplestream.h.
|
inlineoverride |
Definition at line 174 of file samplestream.h.
|
inlineoverride |
Definition at line 180 of file samplestream.h.
|
inlineoverride |
Sets and forwards a StreamError to the readers.
Depending on the implementation and error type this may stop the streaming!
[in] | oError | Error to set |
Definition at line 228 of file samplestream.h.
References cSampleStreamBase::SetStreamError().