| IOLink 1.11.0

Loading...
Searching...
No Matches
Public Member Functions | List of all members
iolink::VariantDataValue Class Referenceabstract

Stores metadata heterogeneous type value. More...

`#include <iolink/VariantDataValue.h>`

## Public Member Functions
virtual std::shared_ptr< VariantDataValue > | clone () const =0
| Copies this value.
virtual DataType | type () const =0
| Returns the type of the values stored.
virtual size_t | count () const =0
| Returns the number of values of the specified type stored.
virtual const void * | raw () const =0
| Returns a pointer to the location where all the values are stored continuously.

## Detailed Description

Stores metadata heterogeneous type value.

This interfaces only give access to the type of data stored, and how many of elements are stored. Values can be accessed by casting the raw pointer to the corresponding type.

## Member Function Documentation

## ◆ raw()

virtual const void * iolink::VariantDataValue::raw | ( |  | ) | const
| pure virtual

Returns a pointer to the location where all the values are stored continuously.

To ease raw value decoding, a helper called VariantDataValueConverter is available to simply convert this VariantDataValue to basic types.

See also
  VariantDataValueConverter

The documentation for this class was generated from the following file:

- iolink/public/include/iolink/VariantDataValue.h