ADTF
Loading...
Searching...
No Matches
samplestreamoutport.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 cSampleStreamOutPort: public sample_stream<IStreamingPort, IStreamingOutPort, ISampleStreamOutPort>
25{
26public:
28 ADTF_CLASS_ID_NAME(cSampleStreamOutPort,
29 "default_sample_stream_out_port.streaming.adtf.cid",
30 "Sample Stream Outport");
31
32public:
33 cSampleStreamOutPort() = default;
34
39 cSampleStreamOutPort(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
cSampleStreamOutPort(const char *strName, const char *strPortId)
Definition samplestreamoutport.h:39
tResult GetPortID(base::ant::IString &&strID) override
Definition samplestreamoutport.h:46
ADTF_CLASS_ID_NAME(cSampleStreamOutPort, "default_sample_stream_out_port.streaming.adtf.cid", "Sample Stream Outport")
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