ADTF
Loading...
Searching...
No Matches
samplestreamoutport.h
Go to the documentation of this file.
1
7
#pragma once
8
9
#include "
samplestream.h
"
10
#include "
streaming_graph_intf.h
"
11
#include "
samplestreamport_intf.h
"
12
13
namespace
adtf
14
{
15
namespace
streaming
16
{
17
namespace
ant
18
{
22
class
cSampleStreamOutPort
:
23
public
ucom::catwo::object
<IStreamingPort, IStreamingOutPort, sample_stream<ISampleStreamOutPort>>
24
{
25
public
:
27
ADTF_CLASS_ID_NAME
(
cSampleStreamOutPort
,
28
"default_sample_stream_out_port.streaming.adtf.cid"
,
29
"Sample Stream Outport"
);
30
31
protected
:
33
cSampleStreamOutPort
(
const
cSampleStreamOutPort
&) =
delete
;
35
cSampleStreamOutPort
(
cSampleStreamOutPort
&&) =
delete
;
37
cSampleStreamOutPort
&
operator=
(
const
cSampleStreamOutPort
&) =
delete
;
39
cSampleStreamOutPort
&
operator=
(
cSampleStreamOutPort
&&) =
delete
;
40
42
cSampleStreamOutPort
() =
default
;
43
44
public
:
46
cSampleStreamOutPort
(
const
char
* strName,
const
char
* strPortID)
47
{
48
SetName(strName);
49
m_strPortID = strPortID;
50
}
51
52
virtual
~cSampleStreamOutPort
() =
default
;
53
54
public
:
55
tResult
GetPortID(
adtf::base::ant::IString
&& strID)
override
56
{
57
return
strID.Set(m_strPortID);
58
}
59
60
private
:
61
adtf_util::cString m_strPortID;
62
};
63
64
}
// namespace ant
65
66
namespace
flash
67
{
68
69
class
cSampleStreamOutPort :
70
public
trigger_pipe_item
<ant::INamedGraphObject,
71
ant::ISampleStream,
72
ant::IStreamingPort,
73
ant::IStreamingOutPort,
74
ant::ISampleStreamOutPort>
75
{
76
public
:
77
cSampleStreamOutPort();
78
cSampleStreamOutPort(
const
char
* strName,
const
char
* strPortId);
79
~cSampleStreamOutPort()
override
;
80
81
public
:
82
tResult
GetStreamError();
83
tResult
GetType(
ucom::ant::iobject_ptr<const ant::IStreamType>
& pStreamType)
const override
;
84
tTimeStamp GetTime()
const override
;
85
tResult
SetStreamError(
const
tResult
& oError)
override
;
86
tResult
AttachRouting(
const
ucom::ant::iobject_ptr<ant::ISampleStream>
& pSampleStreamTo)
override
;
87
tResult
DetachRouting(
const
ucom::ant::iobject_ptr<ant::ISampleStream>
& pSampleStreamTo)
override
;
88
tResult
Open(
const
char
* strName,
89
ucom::ant::iobject_ptr<ant::ISampleInStream>
& pInStream,
90
const
ucom::ant::iobject_ptr<const ant::IStreamType>
& pInitialAcceptedStreamType,
91
ant::ISampleStream::IPushReadEventSink
*& pPushEventSink,
92
ant::ISampleStreamAccess::tMode
ui32Mode,
93
size_t
szQueueSize)
override
;
94
tResult
Open(
const
char
* strName,
95
ucom::ant::iobject_ptr<ant::ISampleOutStream>
& pOutStream,
96
ant::ISampleStreamAccess::tMode
ui32Mode,
97
size_t
szQueueSize)
override
;
98
99
public
:
100
tResult
SetName(
const
char
* strName)
override
;
101
tResult
SetParent(
const
ucom::ant::IObject
* oParentObject)
override
;
102
103
public
:
104
tResult
GetPortID(
adtf::base::ant::IString
&& strID)
override
;
105
106
protected
:
107
class
cImplementation;
108
std::unique_ptr<cImplementation> m_pImplementation;
109
};
110
111
}
// namespace flash
112
113
namespace
quiet
114
{
115
116
using
flash::cSampleStreamOutPort;
117
118
}
119
121
using
quiet::cSampleStreamOutPort;
122
}
// namespace streaming
123
}
// namespace adtf
tResult
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition
result.h:736
adtf::base::ant::IString
Definition
string_intf.h:29
adtf::streaming::ant::ISampleStreamAccess::tMode
tMode
Definition
samplestreamaccess_intf.h:26
adtf::streaming::ant::ISampleStream::IPushReadEventSink
Definition
samplestream_intf.h:41
adtf::streaming::ant::cSampleStreamOutPort::cSampleStreamOutPort
cSampleStreamOutPort()=default
CTOR.
adtf::streaming::ant::cSampleStreamOutPort::operator=
cSampleStreamOutPort & operator=(cSampleStreamOutPort &&)=delete
deleted move operator
adtf::streaming::ant::cSampleStreamOutPort::cSampleStreamOutPort
cSampleStreamOutPort(const cSampleStreamOutPort &)=delete
deleted copy CTOR
adtf::streaming::ant::cSampleStreamOutPort::ADTF_CLASS_ID_NAME
ADTF_CLASS_ID_NAME(cSampleStreamOutPort, "default_sample_stream_out_port.streaming.adtf.cid", "Sample Stream Outport")
Implements adtf::ucom::IClassInfo.
adtf::streaming::ant::cSampleStreamOutPort::cSampleStreamOutPort
cSampleStreamOutPort(const char *strName, const char *strPortID)
CTOR initializes the name of the stream.
Definition
samplestreamoutport.h:46
adtf::streaming::ant::cSampleStreamOutPort::~cSampleStreamOutPort
virtual ~cSampleStreamOutPort()=default
DTOR.
adtf::streaming::ant::cSampleStreamOutPort::operator=
cSampleStreamOutPort & operator=(const cSampleStreamOutPort &)=delete
deleted copy operator
adtf::streaming::ant::cSampleStreamOutPort::cSampleStreamOutPort
cSampleStreamOutPort(cSampleStreamOutPort &&)=delete
deleted move CTOR
adtf::streaming::trigger_pipe_item< ant::INamedGraphObject, ant::ISampleStream, ant::IStreamingPort, ant::IStreamingOutPort, ant::ISampleStreamOutPort >::trigger_pipe_item
trigger_pipe_item()=default
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::catwo::object
Definition
object.h:397
adtf::streaming::ant
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition
bindingproxyoutport.h:16
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
samplestream.h
samplestreamport_intf.h
streaming_graph_intf.h
src
libraries
streaming3
include
adtfstreaming3
samplestreamoutport.h
Copyright © CARIAD SE. All rights reserved | Generated on Thu Aug 6 2026 by doxygen 1.13.2 | GIT Commit Hash: 07d2f84367192978b2a55ca6aee7f968758b7220