ThingWorx C SDK
Functions
twPrimitiveUtils.h File Reference

Provides a set of functions for rapidly declaring ThingShapes and InfoTables using a variable number of arguemnts. More...

#include <twBaseTypes.h>
#include "twInfoTable.h"

Go to the source code of this file.

Functions

twLocationtwCreateLocationFrom (double latitude, double longitude, double elevation)
 
twInfoTableRowtwInfoTable_CreateRowFromEntries (twPrimitive *firstEntry,...)
 
twInfoTabletwInfoTable_CreateInfoTableFromRows (twDataShape *dataShape,...)
 
twDataShapetwDataShape_CreateFromEntries (char *shapeName, twDataShapeEntry *firstEntry,...)
 

Detailed Description

Provides a set of functions for rapidly declaring ThingShapes and InfoTables using a variable number of arguemnts.

Author
bill..nosp@m.reic.nosp@m.hardt.nosp@m.@thi.nosp@m.ngwor.nosp@m.x.co.nosp@m.m

Provides a set of functions for rapidly declaring ThingShapes and InfoTables using a variable number of arguemnts

Function Documentation

twLocation* twCreateLocationFrom ( double  latitude,
double  longitude,
double  elevation 
)

Creates a location primitive from double parameters.

Parameters
latitude
longitude
elevation
Returns
twDataShape* twDataShape_CreateFromEntries ( char *  shapeName,
twDataShapeEntry firstEntry,
  ... 
)

Supports the declaration of a DataShape from a variable number of twDataShapeEntry * arguments. The list of twDataShapeEntry * arguments must be terminated with a NULL parameter.

Parameters
shapeName
firstEntry
Returns
twInfoTable* twInfoTable_CreateInfoTableFromRows ( twDataShape dataShape,
  ... 
)

Supports the declaration of an InfoTableRow from a variable number of arguments. All arguments after dataShape must be of type twInfoTableRow* and must be terminated with a NULL parameter.

Parameters
dataShape
Returns
twInfoTableRow* twInfoTable_CreateRowFromEntries ( twPrimitive firstEntry,
  ... 
)

Supports the declaration of an InfoTableRow from a variable number of twPrimitive * arguments. The list of twPrimitive * arguments must be terminated with a NULL parameter.

Parameters
firstEntry
Returns