12 #include <type_traits>
120 return adtf::base::get_property<adtf_util::cString>(*pProperties,
Encoding);
186 switch (eEncodingType)
248 auto strCheckEncoding = adtf::base::get_property<adtf_util::cString>(*pCheckProperties,
Encoding);
249 auto strExpectedEncoding = adtf::base::get_property<adtf_util::cString>(*pExpectedProperties,
Encoding);
253 "The destination stream type string Encoding expects '%s' but '%s' was found!",
254 strCheckEncoding.GetPtr(), strExpectedEncoding.GetPtr());
259 const auto nByteOrderCheck
261 const auto nByteOrderExpected
263 if (nByteOrderCheck != nByteOrderExpected)
266 "The destination stream type string byte order expects '%d' but '%d' was found!",
267 nByteOrderCheck, nByteOrderExpected);
300 static_assert(base::penguin::detail::always_false<T>,
301 "Invalid type for stream_type_string<T> used!"
302 "Use supported std::string or std::u16string only");
314 GetConfig(pProperties);
324 ADTF3_DEPRECATED("std::wstring can only be used if value type is guaranteed for 16Bit encodings. Use "
333 GetConfig(pProperties);
349 GetConfig(pProperties);
Copyright © Audi Electronics Venture GmbH.
#define ADTF3_DEPRECATED(_depr_message_)
Mark a function or variable as deprecated.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
char tChar
The tChar defines the type for platform character set (platform and compiler dependent type).
#define RETURN_ERROR_DESC(_code,...)
Same as RETURN_ERROR(_error) using a printf like parameter list for detailed error description.
#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.
A common result class usable as return value throughout.
Defines access methods for the interface of a Stream Type - see also Stream Type and Stream Meta Type...
virtual tResult GetConfig(ucom::ant::iobject_ptr< base::ant::IProperties > &pProperties)=0
Get all properties of a Stream Type (read/write)
Default StreamType implementation.
Generator template to create an instance of a ant::IStreamType class for penguin::stream_meta_type_st...
stream_type_string(stream_meta_type_string::EncodingType eEncoding)
Construct a new stream type string object for the "adtf/string" meta type.
Base object pointer to realize binary compatible reference counting in interface methods.
Object pointer implementation used for reference counting on objects of type IObject.
#define PLATFORM_BYTEORDER
defines a link to __get_platform_byteorder.
#define PLATFORM_LITTLE_ENDIAN_8
defines the little endianess value, that will be retrieved by
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
Namespace for entire ADTF SDK.
Copyright © Audi Electronics Venture GmbH.
#define THROW_ERROR_DESC(_code,...)
throws a tResult exception
#define THROW_IF_FAILED(s)
throws if the expression returns a failed tResult