137 m_eType(
tType::Sample),
145 m_eType(
tType::StreamType),
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;
250 using ant::IStreamItem;
251 using ant::cStreamItem;
#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.
A common result class usable as return value throughout.
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.
Default implementation of an StreamItem as container of the Sample Stream s Queue.
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
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
cStreamItem & operator=(const cStreamItem &)=default
copy operator
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.
Object pointer implementation used for reference counting on objects of type IObject.
void Reset()
Reset this object_ptr.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.