160 adtf::util::cString strMetaTypeName;
162 return strMetaTypeName.IsEqual(T::MetaTypeName);
177 return !(oStreamType == oValue);
188 template<
typename VALUETYPE>
193 return adtf::base::set_property<VALUETYPE>(*pProperties, strNameOfValue, oValue);
207 return adtf::base::set_property<adtf_util::cString>(*pProperties, strNameOfValue, adtf_util::cString(poValue));
218 template<
typename VALUETYPE>
222 if (IS_OK(oStreamType.
GetConfig(pProperties)))
224 return adtf::base::get_property<VALUETYPE>(*pProperties, strNameOfValue, oDefaultValue);
228 return oDefaultValue;
238 template<
typename VALUETYPE>
241 return get_property<VALUETYPE>(oStreamType, strNameOfValue, VALUETYPE());
294 template <
typename T>
306 template <
typename C>
static one test( decltype(&C::MetaTypeName) ) ;
318 enum { value =
sizeof(test<T>(
nullptr)) ==
sizeof(
char) };
336 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
340 if (!pStreamType.
Get())
344 return *pStreamType.
Get() == oValue;
357 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
361 return !(pStreamType == oValue);
366 using ant::IStreamMetaType;
367 using ant::IStreamType;
371 using flash::is_stream_meta_type;
Copyright © Audi Electronics Venture GmbH.
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.
virtual T * Get() const =0
Get raw pointer to shared object.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
bool operator==(const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight)
is equal operator to compare tStreamImageFormat
VALUETYPE get_property(const IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oDefaultValue)
Gets the property of the given oStreamType.
tResult set_property(IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oValue)
Sets the property of the given oStreamType to the value oValue.
bool operator!=(const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight)
is not equal operator to compare tStreamImageFormat
tResult is_compatible(const ant::IStreamType &oCheckedType, const ant::IStreamType &oExpectedType)
Checks whether oCheckedType is compatible with oExpectedType.
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.
#define RETURN_IF_FAILED(s)
returns if the expression returns a failed tResult or throws an exception.