TCNOpen TRDP-SPY  2.0
Element Class Reference

description of one element More...

#include <trdpDict.h>

Collaboration diagram for Element:

Data Fields

char * name
 
char * unit
 
guint32 type
 
char typeName [32]
 
gint32 array_size
 
gdouble scale
 
gint32 offset
 
gint32 width
 
struct DatasetlinkedDS
 

Detailed Description

description of one element

All persisted information can be seen in this diagram:

dot_inline_dotgraph_2.png

Field Documentation

◆ array_size

gint32 Element::array_size

Amount this value occurred. 1 is default; 0 indicates a dynamic list (the dynamic list is preceeded by an integer revealing the actual size.)

◆ linkedDS

struct Dataset* Element::linkedDS

points to DS for non-standard types

◆ name

char* Element::name

Name of the element, maybe a stringified index within the dataset, never NULL

◆ offset

gint32 Element::offset

Offset that is added to the values. displayed value = scale * raw value + offset

◆ scale

gdouble Element::scale

A factor the given value is scaled

◆ type

guint32 Element::type

Numeric type of the variable (see Usermanual, chapter 4.2) or defined at TRDP_BOOL8, TRDP_UINT8, TRDP_UINT16 and so on.

◆ typeName

char Element::typeName[32]

typeNames are allowed between 1..30 octets

◆ unit

char* Element::unit

Unit to display, may point to an empty string

◆ width

gint32 Element::width

Contains the Element's size as returned by trdp_dissect_width(this->type)


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