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 <string>
14
15namespace adtf
16{
17namespace streaming
18{
19
24class cSampleStreamInPort: public sample_stream<IStreamingPort, IStreamingInPort, ISampleStreamInPort>
25{
26public:
28 ADTF_CLASS_ID_NAME(cSampleStreamInPort,
29 "default_sample_stream_in_port.streaming.adtf.cid",
30 "Sample Stream Inport");
31
32public:
33 cSampleStreamInPort() = default;
34
39 cSampleStreamInPort(const char* strName, const char* strPortId):
40 sample_stream(strName), m_strPortID(strPortId ? strPortId : "")
41 {
42 }
43
44public: // implements ant::IStreamingPort
47 {
48 RETURN_IF_FAILED(strID.Set(m_strPortID.c_str()));
50 }
51
52private:
53 std::string m_strPortID;
54};
55
56} // namespace streaming
57} // namespace adtf
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:775
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
Definition string_intf.h:29
cSampleStreamInPort(const char *strName, const char *strPortId)
Definition samplestreaminport.h:39
tResult GetPortID(base::ant::IString &&strID) override
Definition samplestreaminport.h:46
ADTF_CLASS_ID_NAME(cSampleStreamInPort, "default_sample_stream_in_port.streaming.adtf.cid", "Sample Stream Inport")
Implements adtf::ucom::IClassInfo.
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