ADTF
Loading...
Searching...
No Matches
sampleoutstream_intf.h
Go to the documentation of this file.
1
7
#pragma once
8
#include "
samplestreamaccess_intf.h
"
9
#include "
streamitem_intf.h
"
10
11
#include <
adtfucom3/adtf_ucom3.h
>
12
13
namespace
adtf
14
{
15
namespace
streaming
16
{
17
namespace
ant
18
{
28
class
ISampleOutStream
:
public
adtf::ucom::ant::IObject
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
:
47
virtual
ISampleStreamAccess::tMode
GetMode
()
const
= 0;
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
97
inline
ISampleOutStream
&
operator<<
(
ISampleOutStream
& oStreamWriter,
const
adtf::ucom::ant::iobject_ptr<const ISample>
& pSample)
98
{
99
oStreamWriter.
Write
(pSample);
100
return
oStreamWriter;
101
}
102
111
inline
ISampleOutStream
&
operator<<
(
ISampleOutStream
& oStreamWriter,
const
adtf::ucom::ant::iobject_ptr<const IStreamType>
& pStreamType)
112
{
113
oStreamWriter.
Write
(pStreamType);
114
return
oStreamWriter;
115
}
116
125
inline
ISampleOutStream
&
operator<<
(
ISampleOutStream
& oStreamWriter,
126
const
adtf::ucom::ant::iobject_ptr<IStreamType>
& pStreamType)
127
{
128
adtf::ucom::object_ptr<const IStreamType>
pConst = pStreamType;
129
oStreamWriter.
Write
(pConst);
130
return
oStreamWriter;
131
}
132
144
inline
ISampleOutStream
&
operator<<
(
ISampleOutStream
& oStreamWriter,
ISampleOutStream
& (*pStreamfunc)(
ISampleOutStream
&))
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
165
using
ant::ISampleOutStream;
166
}
//namespace streaming
167
}
//namespace adtf
adtf_ucom3.h
tResult
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition
result.h:736
adtf::streaming::ant::ISampleOutStream
Definition
sampleoutstream_intf.h:29
adtf::streaming::ant::ISampleOutStream::iobject_ptr
adtf::ucom::ant::iobject_ptr< T > iobject_ptr
used type iobject_ptr
Definition
sampleoutstream_intf.h:40
adtf::streaming::ant::ISampleOutStream::Flush
virtual tResult Flush()=0
adtf::streaming::ant::ISampleOutStream::Write
virtual tResult Write(const iobject_ptr< const IStreamType > &pStreamType)=0
adtf::streaming::ant::ISampleOutStream::SetStreamError
virtual tResult SetStreamError(const tResult &oError)=0
adtf::streaming::ant::ISampleOutStream::ADTF_IID
ADTF_IID(ISampleOutStream, "sampleoutstream.ant.streaming.adtf.iid")
Definition of interface id.
adtf::streaming::ant::ISampleOutStream::~ISampleOutStream
~ISampleOutStream()=default
not destructable
adtf::streaming::ant::ISampleOutStream::Write
virtual tResult Write(const iobject_ptr< const ISample > &pSample)=0
adtf::streaming::ant::ISampleOutStream::GetMode
virtual ISampleStreamAccess::tMode GetMode() const =0
adtf::streaming::ant::ISampleStreamAccess::tMode
tMode
Definition
samplestreamaccess_intf.h:26
adtf::ucom::ant::IObject
Definition
object_intf.h:33
adtf::ucom::ant::iobject_ptr
Base object pointer to realize binary compatible reference counting in interface methods.
Definition
object_ptr_intf.h:112
adtf::ucom::ant::object_ptr
Definition
object_ptr.h:384
adtf::streaming::ant
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition
bindingproxyoutport.h:16
adtf::streaming::ant::operator<<
ISampleOutStream & operator<<(ISampleOutStream &oStreamWriter, const adtf::ucom::ant::iobject_ptr< const ISample > &pSample)
Definition
sampleoutstream_intf.h:97
adtf::streaming
Namespace for the ADTF Streaming SDK.
Definition
bindingproxyinport.h:14
adtf
Namespace for all functionality provided by ADTF and its SDKs.
Definition
adtf_client_connector.h:14
samplestreamaccess_intf.h
streamitem_intf.h
src
libraries
streaming3
include
adtfstreaming3
sampleoutstream_intf.h
Copyright © CARIAD SE. All rights reserved | Generated on Thu Aug 6 2026 by doxygen 1.13.2 | GIT Commit Hash: 07d2f84367192978b2a55ca6aee7f968758b7220