158 if (&oLeftType == &oRightType)
165 return oRightType.GetMetaTypeName(base::cStringRedirect([&](const base::IString& strRightValue) -> tResult
167 if (std::string_view(strLeftValue.Get(), strLeftValue.GetLength()) !=
168 std::string_view(strRightValue.Get(), strRightValue.GetLength()))
170 RETURN_ERROR(ERR_FAILED);
180 RETURN_IF_FAILED(oLeftType.GetConfig(pPropertiesLeft));
182 RETURN_IF_FAILED(oRightType.GetConfig(pPropertiesRight));
202 adtf::util::cString strMetaTypeName;
204 return strMetaTypeName.
IsEqual(T::MetaTypeName);
219 return !(oStreamType == oValue);
245 return !(oStreamTypeLeft == oStreamTypeRight);
256template<
typename VALUETYPE>
260 RETURN_IF_FAILED(oStreamType.
GetConfig(pProperties));
274 RETURN_IF_FAILED(oStreamType.
GetConfig(pProperties));
286template<
typename VALUETYPE>
296 return oDefaultValue;
306template<
typename VALUETYPE>
370 template <
typename C>
static one test(
decltype(&C::MetaTypeName) ) ;
376 template <
typename C>
static two test(...);
382 enum { value =
sizeof(test<T>(
nullptr)) ==
sizeof(
char) };
400 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
404 if (!pStreamType.
Get())
408 return *pStreamType.
Get() == oValue;
421 typename std::enable_if_t<flash::is_stream_meta_type<T>::value,
int> = 0>
425 return !(pStreamType == oValue);
430using ant::IStreamMetaType;
431using ant::IStreamType;
432using ant::get_property;
433using ant::set_property;
434using flash::is_compatible;
435using flash::is_stream_meta_type;
436using spider::is_equal;
#define IS_FAILED(s)
Check if result is failed.
Definition result.h:20
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
Definition result.h:42
#define IS_OK(s)
Check if result is OK.
Definition result.h:17
tBool IsEqual(const tError< ErrorCode > &i_oErrorVal) const noexcept
Check whether an error code is equal to the contained one.
Definition result.h:442
Definition string_intf.h:29
Definition string_intf.h:398
Defines access methods for the interface of a Stream Type.
Definition streamtype_intf.h:96
~IStreamType()=default
not destructable
virtual adtf::util::tVersion GetVersion() const =0
Get version of this instance of the StreamMetaType.
virtual tResult GetConfig(ucom::ant::iobject_ptr< base::ant::IProperties > &pProperties)=0
Get all properties of a Stream Type (read/write)
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.
virtual tResult GetMetaTypeName(base::ant::IString &&strTypeName) const =0
Get the meta type name of this instance.
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.
Definition object_intf.h:33
virtual T * Get() const =0
Get raw pointer to shared object.
Base object pointer to realize binary compatible reference counting in interface methods.
Definition object_ptr_intf.h:112
Definition object_ptr.h:384
tResult is_equal(const ant::IProperties &oLeftProperties, const ant::IProperties &oRightProperties)
VALUETYPE get_property(const IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oDefaultValue)
Get the property content converted to the VALUETYPE.
Definition configuration.h:291
tResult set_property(IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oValue)
Set the property.
Definition configuration.h:327
Namespace for all functionality of the ADTF Streaming SDK provided since v3.0.
Definition bindingproxyoutport.h:16
bool operator==(const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight)
VALUETYPE get_property(const IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oDefaultValue)
Definition streamtype_intf.h:287
tResult set_property(IStreamType &oStreamType, const char *strNameOfValue, VALUETYPE oValue)
Definition streamtype_intf.h:257
bool operator!=(const tStreamImageFormat &sLeft, const tStreamImageFormat &sRight)
tResult is_compatible(const ant::IStreamType &oCheckedType, const ant::IStreamType &oExpectedType)
Namespace for all functionality of the ADTF Streaming SDK provided since v3.18.
Definition graph_element_editors.h:79
tResult is_equal(const ant::IStreamType &oLeftType, const ant::IStreamType &oRightType)
Definition streamtype_intf.h:156
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
ant::IObject IObject
Alias always bringing the latest version of ant::IObject into scope.
Definition object_intf.h:109
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14
#define adtf_string_intf(__string__)
Definition string_intf.h:465