Use cSubStreamTypes to create a Stream Type instance for this Stream Meta Type.
More...
#include <streammetatypesubstreams.h>
|
| static void | SetProperties (const adtf::ucom::ant::iobject_ptr< adtf::base::ant::IProperties > &pProperties) |
| |
| static tResult | IsCompatible (const adtf::streaming::ant::IStreamType &oTypeToCheck, const adtf::streaming::ant::IStreamType &oTypeExpected) |
| | Compares the oTypeExpected Stream Type with the oTypeToCheck.
|
| |
| static bool | HasSubStreams (const ant::IStreamType &oStreamType) |
| |
| static void | ListSubStreams (const ant::IStreamType &oStreamType, std::function< void(const char *)> fnCallback) |
| |
| static void | ListSubStreams (const ant::IStreamType &oStreamType, std::function< void(const char *, uint32_t)> fnCallback) |
| |
| static void | ListSubStreams (const ant::IStreamType &oStreamType, std::function< void(std::string_view strName, uint32_t nId, const ucom::ant::iobject_ptr< const ant::IStreamType > &pType)> fnCallback) |
| |
| static uint32_t | GetSubStreamId (const ant::IStreamType &oStreamType, const char *strSubStreamName) |
| |
| static ucom::ant::object_ptr< const ant::IStreamType > | GetSubStreamType (const ant::IStreamType &oStreamType, const char *strSubStreamName) |
| |
| static void | GetRequestProperties (base::ant::IProperties &oProperties, const ant::IStreamType &oStreamType, const char *strSubStreamName="") |
| |
|
|
static constexpr const char *const | MetaTypeName = "adtf/substreams" |
| | The unique name of this meta type.
|
| |
| static constexpr const char *const | SubStreams = "substreams" |
| | The name of the substreams property.
|
| |
| static constexpr const char *const | SubStreamsRequestProperties = "substreams_request_properties" |
| | The name of the substreams request property.
|
| |
Use cSubStreamTypes to create a Stream Type instance for this Stream Meta Type.
This concept class for describing "adtf/substreams" Stream Types is not used for the genrator class. Use the cSubStreamTypes implemetation instead. Data Pipes using Substreams will use this type to identify each single sample which will belong to a specific substream and its sub type.
◆ stream_meta_type_substreams()
| adtf::streaming::hollow::stream_meta_type_substreams::stream_meta_type_substreams |
( |
| ) |
|
|
default |
◆ GetRequestProperties()
| static void adtf::streaming::hollow::stream_meta_type_substreams::GetRequestProperties |
( |
base::ant::IProperties & | oProperties, |
|
|
const ant::IStreamType & | oStreamType, |
|
|
const char * | strSubStreamName = "" ) |
|
static |
Extracts the common or Substream specific request Properties.
- Parameters
-
| [out] | oProperties | The request Properties will be added to this object. |
| [in] | oStreamType | The Stream Type. |
| [in] | strSubStreamName | The name of the Substream. If empty the common request properties will be retrieved. |
◆ GetSubStreamId()
| static uint32_t adtf::streaming::hollow::stream_meta_type_substreams::GetSubStreamId |
( |
const ant::IStreamType & | oStreamType, |
|
|
const char * | strSubStreamName ) |
|
static |
Returns the Substream id of a given Substream.
- Parameters
-
| [in] | oStreamType | The Stream Type. |
| [in] | strSubStreamName | The name of the Substream. |
- Returns
- The Substream id.
- Exceptions
-
| tResult | in case that the id could not be retrieved. |
◆ GetSubStreamType()
Extracts the Stream Type of a specific Substream.
- Parameters
-
| [in] | oStreamType | The Stream Type. |
| [in] | strSubStreamName | The name of the Substream. |
- Returns
- The Stream Type.
- Exceptions
-
| tResult | in case that Stream Type could not be retrieved. |
◆ HasSubStreams()
| static bool adtf::streaming::hollow::stream_meta_type_substreams::HasSubStreams |
( |
const ant::IStreamType & | oStreamType | ) |
|
|
static |
- Parameters
-
| [in] | oStreamType | The Stream Type |
- Returns
- True if the stream type has substreams
◆ IsCompatible()
Compares the oTypeExpected Stream Type with the oTypeToCheck.
This implementation of IsCompatible will accept all other Meta Types and will return ERR_NOERROR only if:
- Property SubStreams are equal
- the all existing SubstreamName in
oTypeExpected also exists in oTypeToCheck (Currently no the metatype of the Substream ist not checked)
- Parameters
-
| [in] | oTypeToCheck | The incoming type to check. |
| [in] | oTypeExpected | The expected type which values are more significant. |
- Return values
-
| ERR_NOERROR | types are compatible |
◆ ListSubStreams() [1/3]
| static void adtf::streaming::hollow::stream_meta_type_substreams::ListSubStreams |
( |
const ant::IStreamType & | oStreamType, |
|
|
std::function< void(const char *)> | fnCallback ) |
|
static |
List all available Substreams.
- Parameters
-
| [in] | oStreamType | The Stream Type |
| [out] | fnCallback | This is called for each available Substream with the stream name. |
◆ ListSubStreams() [2/3]
| static void adtf::streaming::hollow::stream_meta_type_substreams::ListSubStreams |
( |
const ant::IStreamType & | oStreamType, |
|
|
std::function< void(const char *, uint32_t)> | fnCallback ) |
|
static |
List all available Substreams.
- Parameters
-
| [in] | oStreamType | The Stream Type |
| [out] | fnCallback | This is called for each available Substream with the stream name and id. |
◆ ListSubStreams() [3/3]
List all available Substreams.
- Parameters
-
| [in] | oStreamType | The Stream Type |
| [out] | fnCallback | This is called for each available Substream with the stream name, id and type (strName is null-terminated). |
◆ SetProperties()
Sets the default properties to the given pProperties.
- Parameters
-
| pProperties | The properties where to set the default properties to |
◆ SubStreams
| const char* const adtf::streaming::hollow::stream_meta_type_substreams::SubStreams = "substreams" |
|
staticconstexpr |
The name of the substreams property.
This Property determine if substreams are supported or not (true or false). Subproperties will identify the concreate Substream Type.
◆ SubStreamsRequestProperties
| const char* const adtf::streaming::hollow::stream_meta_type_substreams::SubStreamsRequestProperties = "substreams_request_properties" |
|
staticconstexpr |
The name of the substreams request property.
This Property determine if substreams are requestable and currently requested.
The documentation for this struct was generated from the following file: