36template<
typename DATA_BINDING_IMPL_TYPE>
39 const char* strNameOfWriterAndPin,
43 oWriter.
SetName(strNameOfWriterAndPin);
49 RETURN_IF_FAILED(oDataBindingImpl.RegisterPin(pPin));
68template<
typename DATA_BINDING_IMPL_TYPE>
71 const char* strNameOfWriterAndPin,
75 return create_pin(oDataBindingImpl, oWriter, strNameOfWriterAndPin, pStreamType, pPinCreated);
92template<
typename DATA_BINDING_IMPL_TYPE>
95 const char* strNameOfWriterAndPin,
112template<
typename DATA_BINDING_IMPL_TYPE>
115 const char* strNameOfReaderAndPin,
119 oReader.
SetName(strNameOfReaderAndPin);
125 RETURN_IF_FAILED(oDataBindingImpl.RegisterPin(pPin));
140template<
typename DATA_BINDING_IMPL_TYPE>
143 const char* strNameOfReaderAndPin,
147 return create_pin(oDataBindingImpl, oReader, strNameOfReaderAndPin, pStreamType, pPinCreated);
161template<
typename DATA_BINDING_IMPL_TYPE>
164 const char* strNameOfReaderAndPin,
174template<
typename DATA_BINDING_IMPL_TYPE,
typename READER_OR_WRITER,
typename PIN_INTERFACE>
175tResult create_pin(DATA_BINDING_IMPL_TYPE& oDataBindingImpl,
176 READER_OR_WRITER& oStreamer,
179 typedef typename std::conditional<std::is_base_of<flash::ISampleReader, READER_OR_WRITER>::value, quiet::cInPin, quiet::cOutPin>::type pin_type;
180 adtf::util::cString strNameOfReaderAndPin;
186 RETURN_IF_FAILED(oDataBindingImpl.RegisterPin(pPin));
190template<
typename DATA_BINDING_IMPL_TYPE,
typename READER_OR_WRITER>
191tResult create_pin(DATA_BINDING_IMPL_TYPE& oDataBindingImpl,
192 READER_OR_WRITER& oStreamer)
194 typedef typename std::conditional<std::is_base_of<flash::ISampleReader, READER_OR_WRITER>::value, quiet::cInPin, quiet::cOutPin>::type pin_type;
195 adtf::util::cString strNameOfReaderAndPin;
201 return oDataBindingImpl.RegisterPin(pPin);
204template<
typename DATA_BINDING_IMPL_TYPE,
typename READER_OR_WRITER,
typename PIN_INTERFACE>
205tResult create_pin(DATA_BINDING_IMPL_TYPE& oDataBindingImpl,
206 READER_OR_WRITER& oStreamer,
207 const char* strNameOfReaderAndPin,
209 ucom::ant::iobject_ptr<PIN_INTERFACE>& pCreatedPin)
211 oStreamer.SetName(strNameOfReaderAndPin);
212 oStreamer.SetType(pStreamType);
214 return create_pin(oDataBindingImpl, oStreamer, pCreatedPin);
217template<
typename DATA_BINDING_IMPL_TYPE,
typename READER_OR_WRITER>
218tResult create_pin(DATA_BINDING_IMPL_TYPE& oDataBindingImpl,
219 READER_OR_WRITER& oStreamer,
220 const char* strNameOfReaderAndPin,
221 const ucom::ant::iobject_ptr<const ant::IStreamType>& pStreamType)
223 oStreamer.SetName(strNameOfReaderAndPin);
224 oStreamer.SetType(pStreamType);
226 return create_pin(oDataBindingImpl, oStreamer);
231using flash::create_pin;
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
The default Sample Reader will read the incomung Stream of a IInPin. This sample reader has no intern...
Definition samplereader.h:177
Definition samplewriter.h:34
void ResetPin(ucom::ant::object_ptr< PINTYPE > &pPin)
Definition samplereader.h:95
tResult SetType(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
Definition samplereader.h:140
void SetName(const char *strName)
Definition samplereader.h:84
virtual tResult Reset(const iobject_ptr< T > &i_oOther)=0
Reset this object_ptr<> with the content of another iobject_ptr<>
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
tResult create_pin(DATA_BINDING_IMPL_TYPE &oDataBindingImpl, cSampleWriter &oWriter, const char *strNameOfWriterAndPin, const ucom::iobject_ptr< const IStreamType > &pStreamType, ucom::iobject_ptr< IOutPin > &pPinCreated)
Definition pin_creation.h:37
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
object_ptr< T > ucom_object_ptr_cast(object_ptr< T > oCasted)
Create an object_ptr with an already shared resource of implicitly convertible type.
Definition object_ptr_utilities.h:104
object_ptr< T > ucom_object_ptr_cast(object_ptr< T > oCasted)
Alias always bringing the latest version of ant::ucom_object_ptr_cast() into scope.
Definition object_ptr_utilities.h:104
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Definition object_ptr_intf.h:437
object_ptr< Implementation > make_object_ptr(Args &&... args)
Alias always bringing the latest version of ant::make_object_ptr() into scope.
Definition object_ptr_utilities.h:129
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
#define adtf_string_intf(__string__)
Definition string_intf.h:465