Real-Time API Revision2025.2-0
Loading...
Searching...
No Matches
ItemValue Struct Reference

#include <simrtdb.h>

Public Member Functions

int dimensions[MAX_DIMENSIONS__attribute__ ((aligned(8)))

Data Fields

int stringLength
int numElements
int numMallocedElements
int isRTDB
union { 
Val

Detailed Description

Object to hold the engineering unit value of a RTDB item independent of its data type. This is used in call to getCVTValue and getAlternateValue.

Member Function Documentation

◆ __attribute__()

int dimensions[MAX_DIMENSIONS] ItemValue::__attribute__ ( (aligned(8)) )

Field Documentation

◆ stringLength

int ItemValue::stringLength

◆ numElements

int ItemValue::numElements

The number of elements for array type items.

◆ numMallocedElements

int ItemValue::numMallocedElements

size of the buffer for getCVT values if it has been preallocated by the caller. for getCVTValue, etc... This can be less than the number of elements.

◆ isRTDB

int ItemValue::isRTDB

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

◆ f

float ItemValue::f

Value of the item if its cvt type is float

◆ s

short ItemValue::s

Value of the item if its cvt type is short

◆ us

unsigned short ItemValue::us

Value of the item if its cvt type is unsigned short

◆ c

char ItemValue::c

Value of the item if its cvt type is char

◆ uc

unsigned char ItemValue::uc

Value of the item if its cvt type is unsigned char

◆ i

int ItemValue::i

Value of the item if its cvt type is int

◆ ui

unsigned int ItemValue::ui

Value of the item if its cvt type is unsigned int

◆ stringIndex

short ItemValue::stringIndex

Index of the string value in the string table

◆ [union]

union { ... } ItemValue::Val

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