ADTF
|
Default implementation of an StreamItem as container of the Sample Stream s Queue. More...
Public Member Functions | |
cStreamItem () | |
CTOR. | |
cStreamItem (const IStreamItem &oItem) | |
copy CTOR from interface More... | |
cStreamItem (const ucom::ant::iobject_ptr< const ISample > &pSample) | |
initializer CTOR More... | |
cStreamItem (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) | |
initializer CTOR More... | |
cStreamItem (const cStreamItem &)=default | |
copy CTOR | |
cStreamItem (cStreamItem &&)=default | |
move CTOR | |
cStreamItem & | operator= (const cStreamItem &)=default |
copy operator | |
cStreamItem & | operator= (cStreamItem &&)=default |
move operator | |
tType | GetType () const |
Retrieves the type of the sample item. More... | |
tResult | GetObject (ucom::ant::iobject_ptr< const ucom::ant::IObject > &pObject) const |
Retrieves the object of the StreamItem. More... | |
tResult | GetSample (ucom::ant::iobject_ptr< const ISample > &pSample) const |
Retrieves the sample of the StreamItem if GetType is tType::Sample. More... | |
tResult | GetStreamType (ucom::ant::iobject_ptr< const IStreamType > &pStreamType) const |
Retrieves the StreamType of the StreamItem if GetType is tType::StreamType. More... | |
tResult | SetSample (const ucom::ant::iobject_ptr< const ISample > &pSample) |
Sets a Sample to the StreamItem container and set tType::Sample. More... | |
tResult | SetStreamType (const ucom::ant::iobject_ptr< const IStreamType > &pStreamType) |
Sets a StreamType to the StreamItem container and set tType::StreamType. More... | |
tResult | CopyTo (IStreamItem &oDest) const |
Copy its content to the oDest container. More... | |
Private Attributes | |
tType | m_eType |
adtf::ucom::ant::object_ptr< const IStreamType > | m_pStreamType |
adtf::ucom::ant::object_ptr< const ISample > | m_pSample |
Additional Inherited Members | |
Public Types inherited from IStreamItem | |
enum class | tType : uint32_t { Undefined = 0 , StreamType = 1 , Sample = 2 } |
serval types are defined More... | |
Protected Member Functions inherited from IStreamItem | |
~IStreamItem ()=default | |
not destructable | |
Default implementation of an StreamItem as container of the Sample Stream s Queue.
Definition at line 98 of file streamitem_intf.h.
|
inline |
copy CTOR from interface
oItem | [in] item to copy |
Definition at line 112 of file streamitem_intf.h.
References IStreamItem::GetSample(), IStreamItem::GetStreamType(), IStreamItem::Sample, and IStreamItem::StreamType.
|
inline |
initializer CTOR
pSample | [in] sample to set immediately |
Definition at line 136 of file streamitem_intf.h.
|
inline |
initializer CTOR
pStreamType | [in] StreamType to set immediately |
Definition at line 144 of file streamitem_intf.h.
|
inline |
Copy its content to the oDest
container.
oDest | [in] Destination item to copy the content to. |
ERR_INVALID_TYPE | The content of this item is not initialized. |
Definition at line 226 of file streamitem_intf.h.
References RETURN_ERROR, IStreamItem::Sample, IStreamItem::SetSample(), IStreamItem::SetStreamType(), and IStreamItem::StreamType.
Referenced by cLimitedSampleReaderQueue::Pop(), and cDynamicSampleReaderQueue::Pop().
|
inlinevirtual |
Retrieves the object of the StreamItem.
ERR_NOERROR | Object successfully retrieved |
Implements IStreamItem.
Definition at line 165 of file streamitem_intf.h.
References iobject_ptr_base< T >::Reset(), RETURN_ERROR, IStreamItem::Sample, and IStreamItem::StreamType.
|
inlinevirtual |
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 |
Implements IStreamItem.
Definition at line 184 of file streamitem_intf.h.
References iobject_ptr_base< T >::Reset(), RETURN_ERROR, and IStreamItem::Sample.
Referenced by cSampleReader::ReadNextSample().
|
inlinevirtual |
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 |
Implements IStreamItem.
Definition at line 194 of file streamitem_intf.h.
|
inlinevirtual |
Retrieves the type of the sample item.
See tType for more info.
Implements IStreamItem.
Definition at line 160 of file streamitem_intf.h.
Referenced by cLimitedSampleReaderQueue::Pop(), and cSampleReader::ReadNextSample().
|
inlinevirtual |
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 |
Implements IStreamItem.
Definition at line 204 of file streamitem_intf.h.
References object_ptr< T >::Reset(), RETURN_NOERROR, and IStreamItem::Sample.
|
inlinevirtual |
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 |
Implements IStreamItem.
Definition at line 212 of file streamitem_intf.h.