ADTF  3.18.2
samplestream_intf.h
Go to the documentation of this file.
1 
7 #pragma once
8 #include "triggerpipe_intf.h"
10 #include "streamtype_intf.h"
12 #include "sampleinstream_intf.h"
13 #include "sampleoutstream_intf.h"
14 
15 namespace adtf
16 {
17 namespace streaming
18 {
19 namespace ant
20 {
21 
29  public INamedGraphObject
30  {
31  protected:
33  ~ISampleStream() = default;
34 
35  public:
37  ADTF_IID(ISampleStream, "samplestream.ant.streaming.adtf.iid");
39 
41  {
42  protected:
43  IPushReadEventSink() = default;
44  public:
45  virtual void Reset() = 0;
46  };
47 
48  public:
57 
63  virtual tTimeStamp GetTime() const = 0;
64 
72  virtual tResult SetStreamError(const tResult& oError) = 0;
73 
84 
94 
115  virtual tResult Open(const char* strName,
117  const adtf::ucom::ant::iobject_ptr<const IStreamType>& pInitialAcceptedStreamType,
118  IPushReadEventSink*& pPushEventSink,
120  size_t szQueueSize) = 0;
138  virtual tResult Open(const char* strName,
141  size_t szQueueSize) = 0;
142  };
143 
144 
145 } //namespace ant
147 using ant::ISampleStream;
148 
149 } // namespace streaming
150 } // namespace adtf
The Runnable interface defines common methods for a running component.
Definition: runnable_intf.h:26
Interface for a NamedGraphObject which can be added to the FilterGraph.
Interface of the SampleStream.
virtual tTimeStamp GetTime() const =0
Returns the last flush time and so the current position of the stream.
ADTF_IID(ISampleStream, "samplestream.ant.streaming.adtf.iid")
defintion of interface identifier
~ISampleStream()=default
not desructable
virtual tResult DetachRouting(const adtf::ucom::ant::iobject_ptr< ISampleStream > &pSampleStreamTo)=0
Detaches a SampleStream where the routing was set by AttachRouting.
virtual tResult SetStreamError(const tResult &oError)=0
Sets and forwards a StreamError to the readers.
virtual tResult AttachRouting(const adtf::ucom::ant::iobject_ptr< ISampleStream > &pSampleStreamTo)=0
Attaches a SampleStream where to route the Write / Flush and Run calls to.
virtual tResult Open(const char *strName, adtf::ucom::ant::iobject_ptr< ISampleOutStream > &pOutStream, ISampleStreamAccess::tMode ui32Mode, size_t szQueueSize)=0
Opens The SampleStream for writing access.
virtual tResult Open(const char *strName, adtf::ucom::ant::iobject_ptr< ISampleInStream > &pInStream, const adtf::ucom::ant::iobject_ptr< const IStreamType > &pInitialAcceptedStreamType, IPushReadEventSink *&pPushEventSink, ISampleStreamAccess::tMode ui32Mode, size_t szQueueSize)=0
Opens The SampleStream for reading access.
virtual tResult GetType(adtf::ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const =0
Retrieves the current type of the stream.
Interface for objects which can participate a ITriggerPipe.
Base class for every interface type within the uCOM.
Definition: object_intf.h:31
Base object pointer to realize binary compatible reference counting in interface methods.
Copyright © Audi Electronics Venture GmbH.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.