SIMulation Workbench Documentation SIMulation Workbench Documentation

ItemValueScalar Struct Reference
[RTDB Access API]

#include <simrtdb.h>

Data Fields

int stringLength
int numElements
int numMallocedElements
int isRTDB
union {
   float   f
   short   s
   unsigned short   us
   char   c
   unsigned char   uc
   int   i
   unsigned int   ui
   short   stringIndex
aligned
int dimensions [MAX_DIMENSIONS]

Detailed Description

Object to hold the a single engineering unit value of a RTDB item independent of its data type. This is used for the RTDB default value and RTDB alternate value.


Field Documentation

To be compatible w/ ItemValue.

To be compatible w/ ItemValue.

Indicates whether the string comes from RTDB (true) or local storage (false).

Value of the item if its cvt type is float

Value of the item if its cvt type is short

unsigned short ItemValueScalar::us

Value of the item if its cvt type is unsigned short

Value of the item if its cvt type is char

unsigned char ItemValueScalar::uc

Value of the item if its cvt type is unsigned char

Value of the item if its cvt type is int

unsigned int ItemValueScalar::ui

Value of the item if its cvt type is unsigned int

Index of the string value in the string table

union { ... } ItemValueScalar::aligned
int ItemValueScalar::dimensions[MAX_DIMENSIONS]

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