Public Types | Data Fields
UA_Variant Struct Reference

Variants store (arrays of) any data type. Either they provide a pointer to the data in memory, or functions from which the data can be accessed. Variants are replaced together with the data they store (exception: use a data source). More...

#include <ua_types.h>

Public Types

enum  { UA_VARIANT_DATA, UA_VARIANT_DATA_NODELETE }

Data Fields

const UA_DataTypetype
enum UA_Variant:: { ... }  storageType
UA_Int32 arrayLength
 the number of elements in the data-pointer
void * data
 points to the scalar or array data
UA_Int32 arrayDimensionsSize
 the number of dimensions the data-array has
UA_Int32arrayDimensions
 the length of each dimension of the data-array

Detailed Description

Variants store (arrays of) any data type. Either they provide a pointer to the data in memory, or functions from which the data can be accessed. Variants are replaced together with the data they store (exception: use a data source).

Variant semantics:


Member Enumeration Documentation

anonymous enum
Enumerator:
UA_VARIANT_DATA 

The data is "owned" by this variant (copied and deleted together)

UA_VARIANT_DATA_NODELETE 

The data is "borrowed" by the variant and shall not be deleted at the end of this variant's lifecycle. It is not possible to overwrite borrowed data due to concurrent access. Use a custom datasource with a mutex.


Field Documentation

the length of each dimension of the data-array

the number of dimensions the data-array has

the number of elements in the data-pointer

points to the scalar or array data


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