IOLink
IOL_v1.6.1_release
|
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. More... | |
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.
|
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.