86 static constexpr const char*
const Encoding =
"encoding";
184 switch (eEncodingType)
236 RETURN_IF_FAILED(oTypeToCheck.
GetConfig(pCheckProperties));
238 RETURN_IF_FAILED(oTypeExpected.
GetConfig(pExpectedProperties));
245 "The destination stream type string Encoding expects '%s' but '%s' was found!",
246 strCheckEncoding.GetPtr(), strExpectedEncoding.GetPtr());
251 const auto nByteOrderCheck
253 const auto nByteOrderExpected
255 if (nByteOrderCheck != nByteOrderExpected)
258 "The destination stream type string byte order expects '%" PRIu8
"' but '%" PRIu8
"' was found!",
259 nByteOrderCheck, nByteOrderExpected);
291 "Invalid type for stream_type_string<T> used!"
292 "Use supported std::string or std::u16string only");
314ADTF3_DEPRECATED(
"std::wstring can only be used if value type is guaranteed for 16Bit encodings. Use stream_type_string<std::u16string> instead.")
315stream_type_string<std::wstring> : public
cStreamType
#define ADTF3_DEPRECATED(_depr_message_)
Definition adtf_base_deprecated.h:27
#define THROW_ERROR_DESC(_code,...)
throws a tResult exception
Definition result.h:85
A_UTILS_NS::cResult tResult
For backwards compatibility and to bring latest version into scope.
Definition result.h:736
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
Definition result.h:44
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
Definition result.h:29
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult
Definition result.h:88
Definition properties_v2.h:283
Defines access methods for the interface of a Stream Type.
Definition streamtype_intf.h:96
virtual tResult GetConfig(ucom::ant::iobject_ptr< base::ant::IProperties > &pProperties)=0
Get all properties of a Stream Type (read/write)
tResult GetConfig(adtf::ucom::iobject_ptr< base::ant::IProperties > &pProperties) override
Get all properties of a Stream Type (read/write)
Generator template to create an instance of a ant::IStreamType class for penguin::stream_meta_type_st...
Definition streammetatypestring.h:277
stream_type_string(stream_meta_type_string::EncodingType eEncoding)
Construct a new stream type string object for the "adtf/string" meta type.
Definition streammetatypestring.h:288
Definition object_ptr.h:384
constexpr bool always_false
helper template to get a always false expression.
Definition adtf_base_type_traits.h:23
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.15.
Definition sample_data.h:410
Namespace for the ADTF Streaming SDK.
Definition bindingproxyinport.h:14
ant::iobject_ptr< T > iobject_ptr
Alias always bringing the latest version of ant::iobject_ptr into scope.
Definition object_ptr_intf.h:437
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtf_client_connector.h:14