IOLink IOL_v1.8.0_release
|
Converter contains a set of method allowing to interpret a VariantDataValue as a determined type. More...
#include <iolink/VariantDataValueConverter.h>
Static Public Member Functions | |
static int8_t | toInt8 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 8-bit signed integers. | |
static int16_t | toInt16 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 16-bit signed integers. | |
static int32_t | toInt32 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 32-bit signed integers. | |
static int64_t | toInt64 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 64-bit signed integers. | |
static uint8_t | toUint8 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 8-bit unsigned integers. | |
static uint16_t | toUint16 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 16-bit unsigned integers. | |
static uint32_t | toUint32 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 32-bit unsigned integers. | |
static uint64_t | toUint64 (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 32-bit signed integers. | |
static float | toFloat (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 32-bit floating-point. | |
static double | toDouble (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into 64-bit floats. | |
static std::string | toString (std::shared_ptr< VariantDataValue > value) |
Return converted metadata value into string. | |
static size_t | toInt8Array (std::shared_ptr< VariantDataValue > variant, int8_t *values, size_t count) |
Convert VariantDataValues into 8-bit signed integers. | |
static size_t | toInt16Array (std::shared_ptr< VariantDataValue > variant, int16_t *values, size_t count) |
Convert VariantDataValues into 16-bit signed integers. | |
static size_t | toInt32Array (std::shared_ptr< VariantDataValue > variant, int32_t *values, size_t count) |
Convert VariantDataValues into 32-bit signed integers. | |
static size_t | toInt64Array (std::shared_ptr< VariantDataValue > variant, int64_t *values, size_t count) |
Convert VariantDataValues into 64-bit signed integers. | |
static size_t | toUint8Array (std::shared_ptr< VariantDataValue > variant, uint8_t *values, size_t count) |
Convert VariantDataValues into 8-bit unsigned integers. | |
static size_t | toUint16Array (std::shared_ptr< VariantDataValue > variant, uint16_t *values, size_t count) |
Convert VariantDataValues into 16-bit unsigned integers. | |
static size_t | toUint32Array (std::shared_ptr< VariantDataValue > variant, uint32_t *values, size_t count) |
Convert VariantDataValues into 32-bit unsigned integers. | |
static size_t | toUint64Array (std::shared_ptr< VariantDataValue > variant, uint64_t *values, size_t count) |
Convert VariantDataValues into 64-bit signed integers. | |
static size_t | toFloatArray (std::shared_ptr< VariantDataValue > variant, float *values, size_t count) |
Convert VariantDataValues into 32-bit floating-point. | |
static size_t | toDoubleArray (std::shared_ptr< VariantDataValue > variant, double *values, size_t count) |
Convert VariantDataValues into 64-bit floats. | |
static size_t | toStringArray (std::shared_ptr< VariantDataValue > variant, std::string *values, size_t count) |
Convert VariantDataValues into string. | |
static int8_t | toInt8 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 8-bit signed integers. | |
static int16_t | toInt16 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 16-bit signed integers. | |
static int32_t | toInt32 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 32-bit signed integers. | |
static int64_t | toInt64 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 64-bit signed integers. | |
static uint8_t | toUint8 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 8-bit unsigned integers. | |
static uint16_t | toUint16 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 16-bit unsigned integers. | |
static uint32_t | toUint32 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 32-bit unsigned integers. | |
static uint64_t | toUint64 (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 64-bit unsigned integers. | |
static float | toFloat (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 32-bit floating-point. | |
static double | toDouble (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into 64-bit floats. | |
static std::string | toString (std::shared_ptr< VariantDataValue > variant, size_t index) |
Convert VariantDataValue at given index into string. | |
Converter contains a set of method allowing to interpret a VariantDataValue as a determined type.
|
static |
Return converted metadata value into 64-bit floats.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 64-bit floats.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 64-bit floats.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 32-bit floating-point.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 32-bit floating-point.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 32-bit floating-point.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 16-bit signed integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 16-bit signed integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 16-bit signed integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 32-bit signed integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 32-bit signed integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 32-bit signed integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 64-bit signed integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 64-bit signed integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 64-bit signed integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 8-bit signed integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 8-bit signed integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 8-bit signed integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into string.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into string.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into string.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 16-bit unsigned integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 16-bit unsigned integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 16-bit unsigned integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 32-bit unsigned integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 32-bit unsigned integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 32-bit unsigned integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 32-bit signed integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 64-bit unsigned integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 64-bit signed integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |
|
static |
Return converted metadata value into 8-bit unsigned integers.
value | VariantDataValue to convert |
Error | if VariantDataValue original type cannot be converted |
|
static |
Convert VariantDataValue at given index into 8-bit unsigned integers.
variant | VariantDataValue to convert |
variantIndex | Index of the value to convert and return from VariantDataValue |
Error | if VariantDataValue original type cannot be converted |
Error | if given index is out of range |
|
static |
Convert VariantDataValues into 8-bit unsigned integers.
variant | VariantDataValue to convert |
values | Pre-allocated array which will be filled with converted values extracted from VariantDataValue |
count | Size of pre-allocated array (should be at least equal to VariantDataValue count) |
Error | if VariantDataValue original type cannot be converted |