Converter contains a set of method allowing to interpret a VariantDataValue as a determined type.
More...
#include <iolink/VariantDataValueConverter.h>
Converter contains a set of method allowing to interpret a VariantDataValue as a determined type.
◆ toDouble()
static double iolink::VariantDataValueConverter::toDouble |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into double.
- Parameters
-
- Exceptions
-
◆ toFloat()
static float iolink::VariantDataValueConverter::toFloat |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into float.
- Parameters
-
- Exceptions
-
◆ toInt16()
static int16_t iolink::VariantDataValueConverter::toInt16 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into signed integer 16 bits.
- Parameters
-
- Exceptions
-
◆ toInt32()
static int32_t iolink::VariantDataValueConverter::toInt32 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into signed integer 32 bits.
- Parameters
-
- Exceptions
-
◆ toInt64()
static int64_t iolink::VariantDataValueConverter::toInt64 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into signed integer 64 bits.
- Parameters
-
- Exceptions
-
◆ toInt8()
static int8_t iolink::VariantDataValueConverter::toInt8 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into signed integer 8 bits.
- Parameters
-
- Exceptions
-
◆ toString()
static std::string iolink::VariantDataValueConverter::toString |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into string.
- Parameters
-
- Exceptions
-
◆ toUint16()
static uint16_t iolink::VariantDataValueConverter::toUint16 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into unsigned integer 16 bits.
- Parameters
-
- Exceptions
-
◆ toUint32()
static uint32_t iolink::VariantDataValueConverter::toUint32 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into unsigned integer 32 bits.
- Parameters
-
- Exceptions
-
◆ toUint64()
static uint64_t iolink::VariantDataValueConverter::toUint64 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into signed integer 32 bits.
- Parameters
-
- Exceptions
-
◆ toUint8()
static uint8_t iolink::VariantDataValueConverter::toUint8 |
( |
std::shared_ptr< VariantDataValue > |
value | ) |
|
|
static |
Return converted metadata value into unsigned integer 8 bits.
- Parameters
-
- Exceptions
-
The documentation for this class was generated from the following file: