ADTF
Loading...
Searching...
No Matches
sampleoutstream_intf.h
Go to the documentation of this file.
1
7#pragma once
9#include "streamitem_intf.h"
10
12
13namespace adtf
14{
15namespace streaming
16{
17namespace ant
18{
29 {
30 protected:
32 ~ISampleOutStream() = default;
33 public:
35 ADTF_IID(ISampleOutStream, "sampleoutstream.ant.streaming.adtf.iid");
36
37 public:
39 template <typename T>
40 using iobject_ptr = adtf::ucom::ant::iobject_ptr < T >;
41
42 public:
48
60 virtual tResult Flush() = 0;
61
71 virtual tResult Write(const iobject_ptr<const ISample>& pSample) = 0;
79 virtual tResult Write(const iobject_ptr<const IStreamType>& pStreamType) = 0;
80
86 virtual tResult SetStreamError(const tResult& oError) = 0;
87 };
88
98 {
99 oStreamWriter.Write(pSample);
100 return oStreamWriter;
101 }
102
112 {
113 oStreamWriter.Write(pStreamType);
114 return oStreamWriter;
115 }
116
127 {
129 oStreamWriter.Write(pConst);
130 return oStreamWriter;
131 }
132
145 {
146 return pStreamfunc(oStreamWriter);
147 }
148
157 inline ISampleOutStream& operator<<(ISampleOutStream& oStreamWriter, const tResult& oErr)
158 {
159 oStreamWriter.SetStreamError(oErr);
160 return oStreamWriter;
161 }
162
163} //namespace ant
165using ant::ISampleOutStream;
166} //namespace streaming
167} //namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition sampleoutstream_intf.h:29
adtf::ucom::ant::iobject_ptr< T > iobject_ptr
used type iobject_ptr
Definition sampleoutstream_intf.h:40
virtual tResult Write(const iobject_ptr< const IStreamType > &pStreamType)=0
virtual tResult SetStreamError(const tResult &oError)=0
ADTF_IID(ISampleOutStream, "sampleoutstream.ant.streaming.adtf.iid")
Definition of interface id.
~ISampleOutStream()=default
not destructable
virtual tResult Write(const iobject_ptr< const ISample > &pSample)=0
virtual ISampleStreamAccess::tMode GetMode() const =0
tMode
Definition samplestreamaccess_intf.h:26
Definition object_intf.h:33
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
ISampleOutStream & operator<<(ISampleOutStream &oStreamWriter, const adtf::ucom::ant::iobject_ptr< const ISample > &pSample)
Definition sampleoutstream_intf.h:97
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