PT_TYPE, PT_uVALUE

PT_TYPE, PT_uVALUE — holds the type and value a Cascade DataHub point.

Synopsis

/* A point type can be at least one of the following: */
enum PT_TYPE
{
PT_TYPE_STRING,
PT_TYPE_REAL,
PT_TYPE_INT32,
};

/* A points value is stored in the following union: */
typedef union
  {
  ptreal r;
  int32 i;
  char *s;
  } PT_uVALUE;
  
  typedef PT_uVALUE *PT_pVALUE;

Members

At least the following fields are defined:

r

Either a single-precision or a double-precision floating point number.

i

A 32-bit signed integer regardless of the machine architecture or compiler.

s

A C-style (null-terminated) string of characters.

See Also

Point Structure, Storage, and Manipulation