146 m_pStreamType(pStreamType)
171 return pObject.
Reset(m_pStreamType);
175 return pObject.
Reset(m_pSample);
191 return pSample.
Reset(m_pSample);
201 return pStreamType.Reset(m_pStreamType);
208 m_pStreamType.Reset();
214 m_pStreamType = pStreamType;
250using ant::IStreamItem;
251using ant::cStreamItem;
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
The IStreamItem interface is the base type for all object which are passed through a stream.
virtual tResult SetStreamType(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)=0
Sets a StreamType to the StreamItem container and set tType::StreamType.
virtual tType GetType() const =0
Retrieves the type of the sample item.
virtual tResult GetStreamType(ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const =0
Retrieves the StreamType of the StreamItem if GetType is tType::StreamType.
~IStreamItem()=default
not destructable
virtual tResult GetObject(ucom::ant::iobject_ptr< const ucom::ant::IObject > &pObject) const =0
Retrieves the object of the StreamItem.
virtual tResult SetSample(const ucom::ant::iobject_ptr< const ISample > &pSample)=0
Sets a Sample to the StreamItem container and set tType::Sample.
tType
serval types are defined
@ StreamType
item is a IStreamType. Mind: All StreamType changes will be queue too !!
@ Sample
item is a queue item contains a ISample
virtual tResult GetSample(ucom::ant::iobject_ptr< const ISample > &pSample) const =0
Retrieves the sample of the StreamItem if GetType is tType::Sample.
tResult SetSample(const ucom::ant::iobject_ptr< const ISample > &pSample)
Sets a Sample to the StreamItem container and set tType::Sample.
tResult GetSample(ucom::ant::iobject_ptr< const ISample > &pSample) const
Retrieves the sample of the StreamItem if GetType is tType::Sample.
cStreamItem & operator=(cStreamItem &&)=default
move operator
cStreamItem & operator=(const cStreamItem &)=default
copy operator
tResult GetStreamType(ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const
Retrieves the StreamType of the StreamItem if GetType is tType::StreamType.
cStreamItem(const cStreamItem &)=default
copy CTOR
tType GetType() const
Retrieves the type of the sample item.
tResult CopyTo(IStreamItem &oDest) const
Copy its content to the oDest container.
tResult GetObject(ucom::ant::iobject_ptr< const ucom::ant::IObject > &pObject) const
Retrieves the object of the StreamItem.
cStreamItem(const ucom::ant::iobject_ptr< const ISample > &pSample)
initializer CTOR
cStreamItem(const IStreamItem &oItem)
copy CTOR from interface
tResult SetStreamType(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
Sets a StreamType to the StreamItem container and set tType::StreamType.
cStreamItem(cStreamItem &&)=default
move CTOR
cStreamItem(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)
initializer CTOR
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.
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Namespace for the ADTF Streaming SDK.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.