Real-Time API Revision2025.1-3
Loading...
Searching...
No Matches
ItemValueScalar Struct Reference

#include <simrtdb.h>

Public Member Functions

union { 
   float   f 
   short   s 
   unsigned short   us 
   char   c 
   unsigned char   uc 
   int   i 
   unsigned int   ui 
   short   stringIndex 
__attribute__ ((aligned(8)))

Data Fields

int stringLength
int numElements
int numMallocedElements
int isRTDB
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.

Member Function Documentation

◆ __attribute__()

union ItemValueScalar::@042310211353103133356114135235247027051252367036 ItemValueScalar::__attribute__ ( (aligned(8)) )

Field Documentation

◆ stringLength

int ItemValueScalar::stringLength

◆ numElements

int ItemValueScalar::numElements

To be compatible w/ ItemValue.

◆ numMallocedElements

int ItemValueScalar::numMallocedElements

To be compatible w/ ItemValue.

◆ isRTDB

int ItemValueScalar::isRTDB

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

◆ f

float ItemValueScalar::f

Value of the item if its cvt type is float

◆ s

short ItemValueScalar::s

Value of the item if its cvt type is short

◆ us

unsigned short ItemValueScalar::us

Value of the item if its cvt type is unsigned short

◆ c

char ItemValueScalar::c

Value of the item if its cvt type is char

◆ uc

unsigned char ItemValueScalar::uc

Value of the item if its cvt type is unsigned char

◆ i

int ItemValueScalar::i

Value of the item if its cvt type is int

◆ ui

unsigned int ItemValueScalar::ui

Value of the item if its cvt type is unsigned int

◆ stringIndex

short ItemValueScalar::stringIndex

Index of the string value in the string table

◆ dimensions

int ItemValueScalar::dimensions[MAX_DIMENSIONS]

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