ADTF
Loading...
Searching...
No Matches
samplestreaminport.h
Go to the documentation of this file.
1
7#pragma once
8
9#include "samplestream.h"
12
13#include <memory>
14
15namespace adtf
16{
17namespace streaming
18{
19namespace ant
20{
25 public ucom::catwo::object<IStreamingPort, IStreamingInPort, sample_stream<ISampleStreamInPort>>
26{
27public:
29 ADTF_CLASS_ID_NAME(cSampleStreamInPort, "default_sample_stream_in_port.streaming.adtf.cid", "Sample Stream Inport");
30
31protected:
40
43
44public:
46 cSampleStreamInPort(const char* strName, const char* strPortID)
47 {
48 SetName(strName);
49 m_strPortID = strPortID;
50 }
51
52 virtual ~cSampleStreamInPort() = default;
53
54public:
55 tResult GetPortID(adtf::base::ant::IString&& strID)
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 cSampleStreamInPort :
70 public trigger_pipe_item<ant::INamedGraphObject,
71 ant::ISampleStream,
72 ant::IStreamingPort,
73 ant::IStreamingInPort,
74 ant::ISampleStreamInPort>
75{
76public:
77 cSampleStreamInPort();
78 cSampleStreamInPort(const char* strName, const char* strPortId);
79 ~cSampleStreamInPort() 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::cSampleStreamInPort;
117
118}
119
121using quiet::cSampleStreamInPort;
122
123} // namespace streaming
124} // 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
virtual ~cSampleStreamInPort()=default
DTOR.
cSampleStreamInPort(const cSampleStreamInPort &)=delete
deleted copy CTOR
cSampleStreamInPort & operator=(const cSampleStreamInPort &)=delete
deleted copy operator
ADTF_CLASS_ID_NAME(cSampleStreamInPort, "default_sample_stream_in_port.streaming.adtf.cid", "Sample Stream Inport")
Implements adtf::ucom::IClassInfo.
cSampleStreamInPort(const char *strName, const char *strPortID)
CTOR initializes the name of the stream.
Definition samplestreaminport.h:46
cSampleStreamInPort & operator=(cSampleStreamInPort &&)=delete
deleted move operator
cSampleStreamInPort(cSampleStreamInPort &&)=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