|
ADTF
|
#include <streamitem_intf.h>
Inherited by adtf::streaming::ant::cStreamItem.
Public Types | |
| enum class | tType : uint32_t { Undefined = 0 , StreamType = 1 , Sample = 2 } |
| serval types are defined More... | |
Public Member Functions | |
| virtual tType | GetType () const =0 |
| virtual tResult | GetObject (ucom::ant::iobject_ptr< const ucom::ant::IObject > &pObject) const =0 |
| virtual tResult | GetSample (ucom::ant::iobject_ptr< const ISample > &pSample) const =0 |
| virtual tResult | GetStreamType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const =0 |
| virtual tResult | SetSample (const ucom::ant::iobject_ptr< const ISample > &pSample)=0 |
| virtual tResult | SetStreamType (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType)=0 |
Protected Member Functions | |
| ~IStreamItem ()=default | |
| not destructable | |
The IStreamItem interface is the base type for all object which are passed through a stream
|
strong |
serval types are defined
| Enumerator | |
|---|---|
| StreamType | item is a IStreamType. Mind: All StreamType changes will be queue too !! |
| Sample | item is a queue item contains a ISample |
|
pure virtual |
Retrieves the object of the StreamItem.
| ERR_NOERROR | Object successfully retrieved |
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.
|
pure virtual |
Retrieves the sample of the StreamItem if GetType is tType::Sample
The StreamItem was created to prevent ucom_casts call while transmissions and to define clearly which items are supported.
| ERR_NOERROR | Sample successfully retrieved |
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.
|
pure virtual |
Retrieves the StreamType of the StreamItem if GetType is tType::StreamType
The StreamItem was created to prevent ucom_casts call while transmissions and to define clearly which items are supported.
| ERR_NOERROR | StreamType successfully retrieved |
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.
|
pure virtual |
Retrieves the type of the sample item. See tType for more info.
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.
|
pure virtual |
Sets a Sample to the StreamItem container and set tType::Sample
The StreamItem was created to prevent ucom_casts call while transmissions and to define clearly which items are supported.
| pSample | [in] Sample to set |
| ERR_NOERROR | Sample successfully set |
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.
|
pure virtual |
Sets a StreamType to the StreamItem container and set tType::StreamType
The StreamItem was created to prevent ucom_casts call while transmissions and to define clearly which items are supported.
| pStreamType | [in] StreamType to set |
| ERR_NOERROR | Sample successfully set |
Implemented in adtf::streaming::ant::cStreamItem, and adtf::streaming::cStreamItem.