ADTF
3.18.2
|
Use this Stream Meta Type if your sample data will be any of this type: std::string, std::u16string. More...
Public Types | |
enum class | EncodingType { unknown = 0 , unspecified = 1 , c_char = 2 , utf8 = 3 , w_char = 4 , w_char_16 = w_char , utf16 = 5 } |
The supported encoding types. More... | |
Static Public Member Functions | |
static void | SetProperties (const adtf::ucom::iobject_ptr< adtf::base::IProperties > &pProperties) |
Property setter for plaintype. | |
static adtf_util::cString | GetEncoding (const adtf::streaming::IStreamType &pStreamType) |
Get the Encoding Type as string. More... | |
static void | SetEncoding (adtf::streaming::IStreamType &pStreamType, const char *strEncodingType) |
Set the Encoding type as string. More... | |
static EncodingType | GetEncodingType (const adtf::streaming::IStreamType &pStreamType) |
Get the Encoding Type as part of the enumeration EncodingType. More... | |
static void | SetEncodingType (adtf::streaming::IStreamType &pStreamType, EncodingType eEncodingType) |
Set the Encoding Type by given eEncodingType enumeration value. More... | |
static tResult | IsCompatible (const adtf::streaming::IStreamType &oTypeToCheck, const adtf::streaming::IStreamType &oTypeExpected) |
Compares the oTypeExpected Stream Type with the oTypeToCheck - see Default Stream Meta Types in ADTF for a summary of implementations. More... | |
Static Public Attributes | |
static constexpr const tChar *const | MetaTypeName = "adtf/string" |
StreamMetaTypeName for string. | |
static constexpr const tChar *const | DataEndianess = "data_endianess" |
Name for the Property of the data endianess (only necessary for encoding types greater that 8 Bit). More... | |
static constexpr const tChar *const | Encoding = "encoding" |
encoding Property for string Stream Meta Type More... | |
static constexpr const tChar *const | EncodingValueUnspecified = "unspecified" |
Valid value for Encoding property. | |
static constexpr const tChar *const | EncodingValueCChar = "c-char" |
Valid value for Encoding property. | |
static constexpr const tChar *const | EncodingValueUTF8 = "utf8" |
Valid value for Encoding property. | |
static constexpr const tChar *const | EncodingValueWChar = "w-char" |
Valid value for Encoding property. | |
static constexpr const tChar *const | EncodingValueUTF16 = "utf16" |
Valid value for Encoding property. | |
Use this Stream Meta Type if your sample data will be any of this type: std::string, std::u16string.
Concept template to create the "adtf/string" Stream Meta Type for the generator template stream_meta_type.
Definition at line 30 of file streammetatypestring.h.
|
strong |
The supported encoding types.
Definition at line 44 of file streammetatypestring.h.
|
inlinestatic |
Get the Encoding Type as string.
pStreamType | The streamtype to observe for property Encoding |
Definition at line 114 of file streammetatypestring.h.
|
inlinestatic |
Get the Encoding Type as part of the enumeration EncodingType.
pStreamType | the streamtype to observe for property Encoding |
Definition at line 151 of file streammetatypestring.h.
|
inlinestatic |
Compares the oTypeExpected
Stream Type with the oTypeToCheck
- see Default Stream Meta Types in ADTF for a summary of implementations.
Compatible to all other stream types of any Stream Meta Type, where the following conditions are met:
[in] | oTypeToCheck | The incoming type to check. |
[in] | oTypeExpected | The expected type which values are more significant. |
ERR_NOERROR | types are compatible |
Definition at line 240 of file streammetatypestring.h.
References stream_meta_type_string::DataEndianess, stream_meta_type_string::Encoding, stream_meta_type_string::EncodingValueCChar, stream_meta_type_string::EncodingValueUnspecified, stream_meta_type_string::EncodingValueUTF8, IStreamType::GetConfig(), PLATFORM_LITTLE_ENDIAN_8, RETURN_ERROR_DESC, RETURN_IF_FAILED, and RETURN_NOERROR.
|
inlinestatic |
Set the Encoding type as string.
pStreamType | The streamtype to set the property Encoding |
strEncodingType | The encoding type as string. See supported values at Encoding. |
Definition at line 132 of file streammetatypestring.h.
|
inlinestatic |
Set the Encoding Type by given eEncodingType
enumeration value.
pStreamType | The streamtype to set the property Encoding |
eEncodingType | The encoding type |
Definition at line 184 of file streammetatypestring.h.
|
staticconstexpr |
Name for the Property of the data endianess (only necessary for encoding types greater that 8 Bit).
Valid values are PLATFORM_LITTLE_ENDIAN_8 and PLATFORM_BIG_ENDIAN_8
Definition at line 39 of file streammetatypestring.h.
Referenced by stream_meta_type_string::IsCompatible(), and stream_meta_type_string::SetProperties().
|
staticconstexpr |
encoding Property for string Stream Meta Type
Valid values for this "encoding" property are:
Definition at line 88 of file streammetatypestring.h.
Referenced by stream_meta_type_string::IsCompatible(), and stream_meta_type_string::SetProperties().