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);
211 return strMetaTypeName.
IsEqual(T::MetaTypeName);
226 return !(oStreamType == oValue);
252 return !(oStreamTypeLeft == oStreamTypeRight);
263 template<
typename VALUETYPE>
268 return adtf::base::set_property<VALUETYPE>(*pProperties, strNameOfValue, oValue);
282 return adtf::base::set_property<adtf_util::cString>(*pProperties, strNameOfValue,
adtf_util::cString(poValue));
293 template<
typename VALUETYPE>
299 return adtf::base::get_property<VALUETYPE>(*pProperties, strNameOfValue, oDefaultValue);
303 return oDefaultValue;
313 template<
typename VALUETYPE>
316 return get_property<VALUETYPE>(oStreamType, strNameOfValue, VALUETYPE());
369 template <
typename T>
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);
441 using ant::IStreamMetaType;
442 using ant::IStreamType;
446 using flash::is_stream_meta_type;
Copyright © Audi Electronics Venture GmbH.
#define IS_FAILED(s)
Check if result is failed.
#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.
A common result class usable as return value throughout.
tBool IsEqual(const tError< ErrorCode > &i_oErrorVal) const
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.
Object pointer implementation used for reference counting on objects of type IObject.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
bool operator!=(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType, const T &oValue)
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_ty...
tResult set_property(IStreamType &oStreamType, const char *strNameOfValue, const char *poValue)
Sets the property of the given oStreamType to the cString value poValue.
bool operator==(const ucom::ant::iobject_ptr< const IStreamType > &pStreamType, const T &oValue)
The equality operator returns true only if the given pStreamType is an instance of the stream_meta_ty...
VALUETYPE get_property(const IStreamType &oStreamType, const char *strNameOfValue)
Gets the property of the given oStreamType.
tResult is_compatible(const ucom::ant::iobject_ptr< const ant::IStreamType > &pCheckedType, const ant::IStreamType &oExpectedType)
Checks whether pCheckedType is compatible with oExpectedType.
tResult is_equal(const ant::IStreamType &oLeftType, const ant::IStreamType &oRightType)
Check if two stream types are equal.
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.