ThingWorx C SDK
Public Attributes | List of all members
twPrimitive Struct Reference

BaseType primitive structure. More...

#include <twBaseTypes.h>

Public Attributes

enum BaseType type
 
enum BaseType typeFamily
 
uint32_t length
 
union {
   int32_t   integer
 
   double   number
 
   DATETIME   datetime
 
   twLocation   location
 
   char   boolean
 
   struct {
      char *   data
 
      int32_t   len
 
   }   bytes
 
   struct twInfoTable *   infotable
 
   struct twPrimitive *   variant
 
val
 

Detailed Description

BaseType primitive structure.

Note
Used as a "variant" type throughout the entire API.

Member Data Documentation

char twPrimitive::boolean

TW_BOOLEAN value.

char* twPrimitive::data

Value data pointer.

DATETIME twPrimitive::datetime

TW_DATETIME value.

struct twInfoTable* twPrimitive::infotable

twInfoTable value structure.

int32_t twPrimitive::integer

TW_INTEGER value.

int32_t twPrimitive::len

Value data length.

uint32_t twPrimitive::length

The length of the primitive.

twLocation twPrimitive::location

TW_LOCATION value.

double twPrimitive::number

TW_NUMBER value.

enum BaseType twPrimitive::type

The BaseType of the primitive.

enum BaseType twPrimitive::typeFamily

The BaseType family of the primitive.

union { ... } twPrimitive::val

The value of the primitive.

struct twPrimitive* twPrimitive::variant

Variant twPrimitive value.


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