|
ADTF
|
#include <streammetatypesubstreams.h>
Inherited by adtf::filter::hollow::cSubStreamTypes.
Public Member Functions | |
| template<typename MetaType = stream_meta_type_substreams, typename = std::enable_if_t<is_stream_meta_type<MetaType>::value, MetaType>> | |
| cSubStreamTypes (const MetaType &=MetaType()) | |
| cSubStreamTypes (const ucom::ant::iobject_ptr< const ant::IStreamMetaType > &pMetaType) | |
| virtual | ~cSubStreamTypes () |
| void | SetSubStream (const char *strName, uint32_t nSubStreamId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
| void | SetSubStream (std::string_view strName, uint32_t nSubStreamId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
| void | AddSubStream (std::string_view strName, uint32_t nSubStreamId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
| void | SetRequestProperties (const base::ant::IProperties &oProperties, const char *strSubStreamName="") |
| ucom::ant::object_ptr< const streaming::ant::IStreamType > | GetSubStreamType (const char *strName) const |
| std::optional< std::tuple< uint32_t, ucom::object_ptr< const ant::IStreamType >, ucom::object_ptr< const base::ant::IProperties > > > | GetSubStream (std::string_view strName) const noexcept |
| ucom::ant::object_ptr< ant::IStreamType > | GetStreamType () const |
Helper class to create a stream type with multiple Substreams.
|
inline |
Constructor.
| [in] | oMetaType | The meta type that should be used. |
| The | Stream Meta Type |
| adtf::streaming::hollow::cSubStreamTypes::cSubStreamTypes | ( | const ucom::ant::iobject_ptr< const ant::IStreamMetaType > & | pMetaType | ) |
Constructor.
| [in] | pMetaType | The meta type that should be used. |
|
virtual |
Destructor.
| void adtf::streaming::hollow::cSubStreamTypes::AddSubStream | ( | std::string_view | strName, |
| uint32_t | nSubStreamId, | ||
| const ucom::ant::iobject_ptr< const ant::IStreamType > & | pType ) |
Adds a Substream if no Substream with the same name already exist.
| [in] | strName | The name of the Substream, required to be unique, this is the key to the map of substreams. |
| [in] | nSubStreamId | The id of the Substream, should be unique, but can be reused for aliases etc. |
| [in] | pType | The type of the Substream. |
| ucom::ant::object_ptr< ant::IStreamType > adtf::streaming::hollow::cSubStreamTypes::GetStreamType | ( | ) | const |
Get a Stream Type that contains all currently set Substreams.
This is recreated each time this method is called.
|
noexcept |
Retrieve the entire definition of a given Substream.
| [in] | strName | The name of the Substream. |
| ucom::ant::object_ptr< const streaming::ant::IStreamType > adtf::streaming::hollow::cSubStreamTypes::GetSubStreamType | ( | const char * | strName | ) | const |
Retrieve the Stream Type of a given Substream.
| [in] | strName | The name of the Substream. |
| tResult | Throws if the stream can not be found. |
| void adtf::streaming::hollow::cSubStreamTypes::SetRequestProperties | ( | const base::ant::IProperties & | oProperties, |
| const char * | strSubStreamName = "" ) |
Sets the common or Substream specific request properties.
| [in] | oProperties | The properties to set. |
| [in] | strSubStreamName | The name of the Substream. If empty, then the common request properties will be set. |
| void adtf::streaming::hollow::cSubStreamTypes::SetSubStream | ( | const char * | strName, |
| uint32_t | nSubStreamId, | ||
| const ucom::ant::iobject_ptr< const ant::IStreamType > & | pType ) |
Adds or updates a Substream.
| [in] | strName | The name of the Substream, required to be unique, this is the key to the map of substreams. |
| [in] | nSubStreamId | The id of the Substream, should be unique, but can be reused for aliases etc. |
| [in] | pType | The type of the Substream. |
| void adtf::streaming::hollow::cSubStreamTypes::SetSubStream | ( | std::string_view | strName, |
| uint32_t | nSubStreamId, | ||
| const ucom::ant::iobject_ptr< const ant::IStreamType > & | pType ) |
Adds or updates a Substream.
| [in] | strName | The name of the Substream, required to be unique, this is the key to the map of substreams. |
| [in] | nSubStreamId | The id of the Substream, should be unique, but can be reused for aliases etc. |
| [in] | pType | The type of the Substream. |