ADTF
|
Helper class to create a stream type with multiple Substreams. More...
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()) | |
Constructor. More... | |
cSubStreamTypes (const ucom::ant::iobject_ptr< const ant::IStreamMetaType > &pMetaType) | |
Constructor. More... | |
virtual | ~cSubStreamTypes () |
Destructor. | |
void | SetSubStream (const char *strName, uint32_t nSubStreamId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
Adds or updates a Substream. More... | |
void | SetSubStream (std::string_view strName, uint32_t nSubStreamId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType) |
Adds or updates a Substream. More... | |
void | SetRequestProperties (const base::ant::IProperties &oProperties, const char *strSubStreamName="") |
Sets the common or Substream specific request properties. More... | |
ucom::ant::object_ptr< const streaming::ant::IStreamType > | GetSubStreamType (const char *strName) const |
Retrieve the Stream Type of a given Substream. More... | |
ucom::ant::object_ptr< ant::IStreamType > | GetStreamType () const |
Get a Stream Type that contains all currently set Substreams. More... | |
Protected Attributes | |
std::unique_ptr< cImplementation > | m_pImplementation |
Helper class to create a stream type with multiple Substreams.
Definition at line 136 of file streammetatypesubstreams.h.
|
inline |
Constructor.
[in] | oMetaType | The meta type that should be used. |
The | Stream Meta Type |
Definition at line 145 of file streammetatypesubstreams.h.
cSubStreamTypes | ( | const ucom::ant::iobject_ptr< const ant::IStreamMetaType > & | pMetaType | ) |
Constructor.
[in] | pMetaType | The meta type that should be used. |
ucom::ant::object_ptr<ant::IStreamType> GetStreamType | ( | ) | const |
Get a Stream Type that contains all currently set Substreams.
This is recreated each time this method is called.
ucom::ant::object_ptr<const streaming::ant::IStreamType> GetSubStreamType | ( | const char * | strName | ) | const |
Retrieve the Stream Type of a given Substream.
[in] | strName | The The name of the Substream. |
void 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 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 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. |