ADTF
Loading...
Searching...
No Matches
samplestreamoutport.h
Go to the documentation of this file.
1
7#pragma once
8
9#include "samplestream.h"
12
13namespace adtf
14{
15namespace streaming
16{
17namespace ant
18{
23 public ucom::catwo::object<IStreamingPort, IStreamingOutPort, sample_stream<ISampleStreamOutPort>>
24{
25public:
28 "default_sample_stream_out_port.streaming.adtf.cid",
29 "Sample Stream Outport");
30
31protected:
40
43
44public:
46 cSampleStreamOutPort(const char* strName, const char* strPortID)
47 {
48 SetName(strName);
49 m_strPortID = strPortID;
50 }
51
52 virtual ~cSampleStreamOutPort() = default;
53
54public:
55 tResult GetPortID(adtf::base::ant::IString&& strID) override
56 {
57 return strID.Set(m_strPortID);
58 }
59
60private:
61 adtf_util::cString m_strPortID;
62};
63
64} // namespace ant
65
66namespace flash
67{
68
69class cSampleStreamOutPort :
70 public trigger_pipe_item<ant::INamedGraphObject,
71 ant::ISampleStream,
72 ant::IStreamingPort,
73 ant::IStreamingOutPort,
74 ant::ISampleStreamOutPort>
75{
76public:
77 cSampleStreamOutPort();
78 cSampleStreamOutPort(const char* strName, const char* strPortId);
79 ~cSampleStreamOutPort() override;
80
81public:
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,
90 const ucom::ant::iobject_ptr<const ant::IStreamType>& pInitialAcceptedStreamType,
93 size_t szQueueSize) override;
94 tResult Open(const char* strName,
97 size_t szQueueSize) override;
98
99public:
100 tResult SetName(const char* strName) override;
101 tResult SetParent(const ucom::ant::IObject* oParentObject) override;
102
103public:
104 tResult GetPortID(adtf::base::ant::IString&& strID) override;
105
106protected:
107 class cImplementation;
108 std::unique_ptr<cImplementation> m_pImplementation;
109};
110
111} // namespace flash
112
113namespace quiet
114{
115
116using flash::cSampleStreamOutPort;
117
118}
119
121using quiet::cSampleStreamOutPort;
122} // namespace streaming
123} // namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
Definition string_intf.h:29
tMode
Definition samplestreamaccess_intf.h:26
cSampleStreamOutPort & operator=(cSampleStreamOutPort &&)=delete
deleted move operator
cSampleStreamOutPort(const cSampleStreamOutPort &)=delete
deleted copy CTOR
ADTF_CLASS_ID_NAME(cSampleStreamOutPort, "default_sample_stream_out_port.streaming.adtf.cid", "Sample Stream Outport")
Implements adtf::ucom::IClassInfo.
cSampleStreamOutPort(const char *strName, const char *strPortID)
CTOR initializes the name of the stream.
Definition samplestreamoutport.h:46
virtual ~cSampleStreamOutPort()=default
DTOR.
cSampleStreamOutPort & operator=(const cSampleStreamOutPort &)=delete
deleted copy operator
cSampleStreamOutPort(cSampleStreamOutPort &&)=delete
deleted move CTOR
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.h:397
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
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