ADTF
Loading...
Searching...
No Matches
sampleinstream_intf.h
Go to the documentation of this file.
1
7#pragma once
9#include "streamitem_intf.h"
10
12
13namespace adtf
14{
15 namespace streaming
16 {
17 namespace ant
18 {
27 {
28 protected:
30 ~ISampleInStream() = default;
31 public:
33 ADTF_IID(ISampleInStream, "sampleinstream.ant.streaming.adtf.iid");
34
35 public:
37 template <typename T>
38 using iobject_ptr = adtf::ucom::ant::iobject_ptr < T >;
39
40 public:
46
52 virtual tResult SetStreamError(const tResult& oError) = 0;
53
68 virtual tResult Read(IStreamItem& oItem, tTimeStamp tmTimeOut = 0) const = 0;
69 };
70
80 inline const ISampleInStream& operator >> (const ISampleInStream& oStreamReader,
81 IStreamItem& oItem)
82 {
83 oStreamReader.Read(oItem, 0);
84 return oStreamReader;
85 }
86 } //namespace ant
87
89 using ant::ISampleInStream;
90
91 } //namespac streaming
92} //namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition sampleinstream_intf.h:27
ADTF_IID(ISampleInStream, "sampleinstream.ant.streaming.adtf.iid")
Definition of interface id.
virtual tResult SetStreamError(const tResult &oError)=0
~ISampleInStream()=default
not destructable
virtual ISampleStreamAccess::tMode GetMode() const =0
virtual tResult Read(IStreamItem &oItem, tTimeStamp tmTimeOut=0) const =0
adtf::ucom::ant::iobject_ptr< T > iobject_ptr
used iobject_ptr
Definition sampleinstream_intf.h:38
tMode
Definition samplestreamaccess_intf.h:26
Definition streamitem_intf.h:25
Definition object_intf.h:33
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
const ISampleInStream & operator>>(const ISampleInStream &oStreamReader, IStreamItem &oItem)
Definition sampleinstream_intf.h:80
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14