3#include <iolink/IOLinkAPI.h>
4#include <iolink/VariantDataValue.h>
19 static int8_t
toInt8(std::shared_ptr<VariantDataValue> value);
26 static int16_t
toInt16(std::shared_ptr<VariantDataValue> value);
33 static int32_t
toInt32(std::shared_ptr<VariantDataValue> value);
40 static int64_t
toInt64(std::shared_ptr<VariantDataValue> value);
47 static uint8_t
toUint8(std::shared_ptr<VariantDataValue> value);
54 static uint16_t
toUint16(std::shared_ptr<VariantDataValue> value);
61 static uint32_t
toUint32(std::shared_ptr<VariantDataValue> value);
68 static uint64_t
toUint64(std::shared_ptr<VariantDataValue> value);
75 static float toFloat(std::shared_ptr<VariantDataValue> value);
82 static double toDouble(std::shared_ptr<VariantDataValue> value);
89 static std::string
toString(std::shared_ptr<VariantDataValue> value);
104 static size_t toInt8Array(std::shared_ptr<VariantDataValue> variant, int8_t* values,
size_t count);
115 static size_t toInt16Array(std::shared_ptr<VariantDataValue> variant, int16_t* values,
size_t count);
126 static size_t toInt32Array(std::shared_ptr<VariantDataValue> variant, int32_t* values,
size_t count);
137 static size_t toInt64Array(std::shared_ptr<VariantDataValue> variant, int64_t* values,
size_t count);
148 static size_t toUint8Array(std::shared_ptr<VariantDataValue> variant, uint8_t* values,
size_t count);
159 static size_t toUint16Array(std::shared_ptr<VariantDataValue> variant, uint16_t* values,
size_t count);
170 static size_t toUint32Array(std::shared_ptr<VariantDataValue> variant, uint32_t* values,
size_t count);
181 static size_t toUint64Array(std::shared_ptr<VariantDataValue> variant, uint64_t* values,
size_t count);
192 static size_t toFloatArray(std::shared_ptr<VariantDataValue> variant,
float* values,
size_t count);
203 static size_t toDoubleArray(std::shared_ptr<VariantDataValue> variant,
double* values,
size_t count);
214 static size_t toStringArray(std::shared_ptr<VariantDataValue> variant, std::string* values,
size_t count);
228 static int8_t
toInt8(std::shared_ptr<VariantDataValue> variant,
size_t index);
238 static int16_t
toInt16(std::shared_ptr<VariantDataValue> variant,
size_t index);
248 static int32_t
toInt32(std::shared_ptr<VariantDataValue> variant,
size_t index);
258 static int64_t
toInt64(std::shared_ptr<VariantDataValue> variant,
size_t index);
268 static uint8_t
toUint8(std::shared_ptr<VariantDataValue> variant,
size_t index);
278 static uint16_t
toUint16(std::shared_ptr<VariantDataValue> variant,
size_t index);
288 static uint32_t
toUint32(std::shared_ptr<VariantDataValue> variant,
size_t index);
298 static uint64_t
toUint64(std::shared_ptr<VariantDataValue> variant,
size_t index);
308 static float toFloat(std::shared_ptr<VariantDataValue> variant,
size_t index);
318 static double toDouble(std::shared_ptr<VariantDataValue> variant,
size_t index);
328 static std::string
toString(std::shared_ptr<VariantDataValue> variant,
size_t index);
Converter contains a set of method allowing to interpret a VariantDataValue as a determined type.
Definition: VariantDataValueConverter.h:12
static size_t toStringArray(std::shared_ptr< VariantDataValue > variant, std::string *values, size_t count)
Convert VariantDataValues into string.
static size_t toUint32Array(std::shared_ptr< VariantDataValue > variant, uint32_t *values, size_t count)
Convert VariantDataValues into 32-bit unsigned integers.
static double toDouble(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 64-bit floats.
static std::string toString(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into string.
static size_t toInt16Array(std::shared_ptr< VariantDataValue > variant, int16_t *values, size_t count)
Convert VariantDataValues into 16-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 uint16_t toUint16(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 16-bit unsigned integers.
static size_t toUint8Array(std::shared_ptr< VariantDataValue > variant, uint8_t *values, size_t count)
Convert VariantDataValues into 8-bit unsigned integers.
static uint32_t toUint32(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 32-bit unsigned integers.
static float toFloat(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 32-bit floating-point.
static int32_t toInt32(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 32-bit signed integers.
static int8_t toInt8(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into 8-bit signed integers.
static std::string toString(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into string.
static uint64_t toUint64(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into 64-bit unsigned integers.
static size_t toInt8Array(std::shared_ptr< VariantDataValue > variant, int8_t *values, size_t count)
Convert VariantDataValues into 8-bit signed integers.
static int8_t toInt8(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 8-bit signed integers.
static double toDouble(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into 64-bit floats.
static int64_t toInt64(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into 64-bit signed integers.
static size_t toDoubleArray(std::shared_ptr< VariantDataValue > variant, double *values, size_t count)
Convert VariantDataValues into 64-bit floats.
static size_t toInt32Array(std::shared_ptr< VariantDataValue > variant, int32_t *values, size_t count)
Convert VariantDataValues into 32-bit signed integers.
static int16_t toInt16(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 16-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 size_t toUint64Array(std::shared_ptr< VariantDataValue > variant, uint64_t *values, size_t count)
Convert VariantDataValues into 64-bit signed integers.
static uint32_t toUint32(std::shared_ptr< VariantDataValue > variant, size_t index)
Convert VariantDataValue at given index into 32-bit unsigned integers.
static size_t toInt64Array(std::shared_ptr< VariantDataValue > variant, int64_t *values, size_t count)
Convert VariantDataValues into 64-bit signed integers.
static int64_t toInt64(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 64-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 size_t toFloatArray(std::shared_ptr< VariantDataValue > variant, float *values, size_t count)
Convert VariantDataValues into 32-bit floating-point.
static size_t toUint16Array(std::shared_ptr< VariantDataValue > variant, uint16_t *values, size_t count)
Convert VariantDataValues into 16-bit unsigned integers.
static uint8_t toUint8(std::shared_ptr< VariantDataValue > value)
Return converted metadata value into 8-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 > variant, size_t index)
Convert VariantDataValue at given index into 32-bit floating-point.
All IOLink symbols are enclosed in this namespace.
Definition: ArrayX.h:8