165 if (&oLeftType == &oRightType)
172 return oRightType.GetMetaTypeName(base::cStringRedirect([&](const base::IString& strRightValue) -> tResult
174 if (std::string_view(strLeftValue.Get(), strLeftValue.GetLength()) !=
175 std::string_view(strRightValue.Get(), strRightValue.GetLength()))
177 RETURN_ERROR(ERR_FAILED);
209 adtf::util::cString strMetaTypeName;
211 return strMetaTypeName.
IsEqual(T::MetaTypeName);
226 return !(oStreamType == oValue);
252 return !(oStreamTypeLeft == oStreamTypeRight);
263template<
typename VALUETYPE>
293template<
typename VALUETYPE>
303 return oDefaultValue;
313template<
typename VALUETYPE>
381 template <
typename C>
static one test(
decltype(&C::MetaTypeName) ) ;
393 enum { value =
sizeof(
test<T>(
nullptr)) ==
sizeof(
char) };
411 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
415 if (!pStreamType.Get())
419 return *pStreamType.Get() == oValue;
432 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
436 return !(pStreamType == oValue);
441using ant::IStreamMetaType;
442using ant::IStreamType;
443using ant::get_property;
444using ant::set_property;
445using flash::is_compatible;
446using flash::is_stream_meta_type;
447using spider::is_equal;
Copyright © Audi Electronics Venture GmbH.
#define IS_FAILED(s)
Check if result is failed.
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
#define IS_OK(s)
Check if result is OK.
tBool operator!=(const tErrorCode &lhs, const tErrorCode &rhs)
Compare two POD error code types for inequality.
tBool operator==(const tErrorCode &lhs, const tErrorCode &rhs)
Compare two POD error code types for equality.
tBool IsEqual(const tError< ErrorCode > &i_oErrorVal) const noexcept
Check whether an error code is equal to the contained one.
The IString interface provides methods for getting and setting strings through abstract interfaces.
Defines access methods for the interface of a Stream Type - see also Stream Type and Stream Meta Type...
virtual adtf::util::tVersion GetVersion() const =0
Get version of this instance of the StreamMetaType.
virtual tResult GetMetaTypeName(base::ant::IString &&strTypeName) const =0
Get the meta type name of this instance.
ADTF_IID(IStreamType, "streamtype.ant.streaming.adtf.iid")
Interface ID for the Stream Type interface.
virtual tResult GetMetaType(ucom::ant::iobject_ptr< const IStreamMetaType > &pMetaType) const =0
Get the Stream Meta Type definition of the Stream Type.
~IStreamType()=default
not destructable
virtual tResult GetConfig(ucom::ant::iobject_ptr< const base::ant::IProperties > &pProperties) const =0
Get all properties of a Stream Type (read only) - const correct.
virtual tResult GetConfig(ucom::ant::iobject_ptr< base::ant::IProperties > &pProperties)=0
Get all properties of a Stream Type (read/write)
Base class for every interface type within the uCOM.
Base object pointer to realize binary compatible reference counting in interface methods.
tResult is_equal(const ant::IProperties &oLeftProperties, const ant::IProperties &oRightProperties)
Check if two property sets are equal.
VALUETYPE get_property(const IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oDefaultValue)
Get the property content converted to the VALUETYPE.
tResult set_property(IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oValue)
Set the property.
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
tResult set_property(IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oValue)
Sets the property of the given oStreamType to the value oValue.
VALUETYPE get_property(const IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oDefaultValue)
Gets the property of the given oStreamType.
tResult is_compatible(const ant::IStreamType &oCheckedType, const ant::IStreamType &oExpectedType)
Checks whether oCheckedType is compatible with oExpectedType.
Namespace for all functionality of the ADTF Streaming SDK provided since v3.18.
tResult is_equal(const ant::IStreamType &oLeftType, const ant::IStreamType &oRightType)
Check if two stream types are equal.
Namespace for the ADTF Streaming SDK.
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
#define adtf_string_intf(__string__)
The adtf_string_intf Macro helps to easily create a rvalue reference of a adtf::util::cString.