ThingWorx C SDK
|
ThingWorx twInfoTable and twDataShape definitions and functions. More...
Go to the source code of this file.
Classes | |
struct | twDataShapeAspect |
Data shape aspect structure definition. More... | |
struct | twDataShapeEntry |
DataShape entry structure definition. More... | |
struct | twDataShape |
Data shape base structure definition. More... | |
struct | twInfoTableRow |
Info table row structure. More... | |
struct | twInfoTable |
Info table base structure. More... | |
Functions | |
Convenience Functions for Creating InfoTables | |
twInfoTable * | twInfoTable_CreateFromPrimitive (const char *name, twPrimitive *value) |
Helper function to create a twInfoTable with a single field and single row containing a type and value specified by value . More... | |
twInfoTable * | twInfoTable_CreateFromString (const char *name, char *value, char duplicate) |
Helper function to create a twInfoTable with a single field and single row containing a TW_STRING. More... | |
twInfoTable * | twInfoTable_CreateFromNumber (const char *name, double value) |
Helper function to create a twInfoTable with a single field and single row containing a TW_NUMBER. More... | |
twInfoTable * | twInfoTable_CreateFromInteger (const char *name, int32_t value) |
Helper function to create a twInfoTable with a single field and single row containing a TW_INTEGER. More... | |
twInfoTable * | twInfoTable_CreateFromLocation (const char *name, twLocation *value) |
Helper function to create a twInfoTable with a single field and single row containing a TW_LOCATION. More... | |
twInfoTable * | twInfoTable_CreateFromBlob (const char *name, char *value, int32_t length, char isImage, char duplicate) |
Helper function to create a twInfoTable with a single field and single row containing a TW_BLOB or TW_IMAGE. More... | |
twInfoTable * | twInfoTable_CreateFromDatetime (const char *name, DATETIME value) |
Helper function to create a twInfoTable with a single field and single row containing a TW_DATETIME. More... | |
twInfoTable * | twInfoTable_CreateFromBoolean (const char *name, char value) |
Helper function to create a twInfoTable with a single field and single row containing a TW_BOOLEAN. More... | |
Convenience Functions for Accessing InfoTable Values | |
int | twInfoTable_GetString (twInfoTable *it, const char *name, int32_t row, char **value) |
Helper function to retrieve a TW_STRING from a twInfoTable. More... | |
int | twInfoTable_GetNumber (twInfoTable *it, const char *name, int32_t row, double *value) |
Helper function to retrieve a TW_NUMBER from a twInfoTable. More... | |
int | twInfoTable_GetInteger (twInfoTable *it, const char *name, int32_t row, int32_t *value) |
Helper function to retrieve a TW_INTEGER from a twInfoTable. More... | |
int | twInfoTable_GetLocation (twInfoTable *it, const char *name, int32_t row, twLocation *value) |
Helper function to retrieve a TW_LOCATION from a twInfoTable. More... | |
int | twInfoTable_GetBlob (twInfoTable *it, const char *name, int32_t row, char **value, int32_t *length) |
Helper function to retrieve a TW_BLOB from a twInfoTable. More... | |
int | twInfoTable_GetDatetime (twInfoTable *it, const char *name, int32_t row, DATETIME *value) |
Helper function to retrieve a TW_DATETIME from a twInfoTable. More... | |
int | twInfoTable_GetBoolean (twInfoTable *it, const char *name, int32_t row, char *value) |
Helper function to retrieve a TW_BOOLEAN from a twInfoTable. More... | |
int | twInfoTable_GetPrimitive (twInfoTable *it, const char *name, int32_t row, twPrimitive **value) |
Helper function to retrieve a twPrimitive from a twInfoTable. More... | |
JSON Conversion Utils | |
| |
twInfoTable * | twInfoTable_CreateFromJson (struct cJSON *json, char *singleEntryName) |
Helper function that creates a twInfoTable from a cJSON object. If the JSON object does not represent a valid twInfoTable, a twInfoTable with a single field, single row, of type JSON will be created. More... | |
struct cJSON * | twDataShape_ToJson (twDataShape *ds, struct cJSON *parent) |
Helper function that outputs a twDataShape to a cJSON object. More... | |
struct cJSON * | twInfoTable_ToJson (twInfoTable *it) |
Helper function that outputs a twInfoTable to a cJSON object. More... | |
DataShape Aspects | |
typedef struct twDataShapeAspect | twDataShapeAspect |
Data shape aspect structure definition. | |
twDataShapeAspect * | twDataShapeAspect_Create (const char *name, twPrimitive *value) |
Creates a new twDataShapeAspect structure. More... | |
twDataShapeAspect * | twDataShapeAspect_CreateFromStream (twStream *s) |
Creates a new twDataShapeAspect structure from data in a twStream. More... | |
void | twDataShapeAspect_Delete (void *aspect) |
Frees all memory associated with a twDataShapeAspect and all its owned substructures. More... | |
Data Shape Entries | |
typedef struct twDataShapeEntry | twDataShapeEntry |
DataShape entry structure definition. | |
twDataShapeEntry * | twDataShapeEntry_Create (const char *name, const char *description, enum BaseType type) |
Creates a new twDataShapeEntry structure. More... | |
twDataShapeEntry * | twDataShapeEntry_CreateFromStream (struct twStream *s) |
Creates a new twDataShapeEntry structure from data in a twStream. More... | |
void | twDataShapeEntry_Delete (void *entry) |
Frees all memory associated with a twDataShapeEntry structure and all its owned substructures. More... | |
int | twDataShapeEntry_AddAspect (struct twDataShapeEntry *entry, const char *name, twPrimitive *value) |
Creates a new twDataShapeAspect with twDataShapeAspect::value value and adds it to the specified twDataShapeEntry entry . More... | |
uint32_t | twDataShapeEntry_GetLength (struct twDataShapeEntry *entry) |
Retrieves the length of a twDataShapeEntry. More... | |
int | twDataShapeEntry_ToStream (struct twDataShapeEntry *entry, twStream *s) |
Serializes a twDataShapeEntry to a twStream. More... | |
Data Shapes | |
typedef struct twDataShape | twDataShape |
Data shape base structure definition. | |
twDataShape * | twDataShape_Create (twDataShapeEntry *firstEntry) |
Creates a new twDataShape structure. More... | |
twDataShape * | twDataShape_CreateFromStream (struct twStream *s) |
Creates a new twDataShape structure from data in a twStream. More... | |
void | twDataShape_Delete (void *ds) |
Frees all memory associated with a twDataShape structure and all its owned substructures. More... | |
uint32_t | twDataShape_GetLength (struct twDataShape *ds) |
Retrieves the length of a twDataShape. More... | |
int | twDataShape_ToStream (struct twDataShape *ds, twStream *s) |
Serializes a twDataShape to a twStream. More... | |
int | twDataShape_SetName (struct twDataShape *ds, char *name) |
Sets the name of a twDataShape. More... | |
int | twDataShape_AddEntry (struct twDataShape *ds, struct twDataShapeEntry *entry) |
Adds a new twDataShapeEntry to a twDataShape. More... | |
int | twDataShape_GetEntryIndex (struct twDataShape *ds, const char *name, int *index) |
Gets the index of the twDataShapeEntry with the specified name. More... | |
Info Tables | |
typedef struct twInfoTable | twInfoTable |
Info table base structure. | |
twInfoTable * | twInfoTable_Create (twDataShape *shape) |
Creates a new twInfoTable. More... | |
twInfoTable * | twInfoTable_CreateFromStream (twStream *s) |
Creates a new twInfoTable from data in a twStream. More... | |
void | twInfoTable_Delete (void *it) |
Frees all memory associated with a twInfoTable structure and all its owned substructures. More... | |
twInfoTable * | twInfoTable_FullCopy (twInfoTable *it) |
Creates a new twInfoTable structure and copies all data from an existing twInfoTable structure to the newly created twInfoTable structure. More... | |
twInfoTable * | twInfoTable_ZeroCopy (twInfoTable *it) |
Creates a new twInfoTable structure which inherits all pointers of an existing twInfoTable structure it . The pointers of it will be zeroed so that it may be safely deleted. More... | |
int | twInfoTable_Compare (twInfoTable *p1, twInfoTable *p2) |
Compares two twInfoTable structures for equivalence. More... | |
int | twInfoTable_AddRow (twInfoTable *it, twInfoTableRow *row) |
Adds a twInfoTableRow to a twInfoTable. More... | |
twInfoTableRow * | twInfoTable_GetEntry (twInfoTable *it, int index) |
Retrieves the twInfoTableRow from a twInfoTable at the specified (zero based) index. More... | |
int | twInfoTable_ToStream (twInfoTable *it, twStream *s) |
Serializes a twInfoTable to a twStream. More... | |
ThingWorx twInfoTable and twDataShape definitions and functions.
int twDataShape_AddEntry | ( | struct twDataShape * | ds, |
struct twDataShapeEntry * | entry | ||
) |
Adds a new twDataShapeEntry to a twDataShape.
[in] | ds | A pointer to the twDataShape to add the entry to. |
[in] | entry | A pointer to the twDataShapeEntry to add. |
ds
twDataShape takes ownership of the entry
twDataShapeEntry. twDataShape* twDataShape_Create | ( | twDataShapeEntry * | firstEntry | ) |
Creates a new twDataShape structure.
[in] | firstEntry | A pointer to a twDataShapeEntry to seed the twDataShape with. If NULL and empty datashape is created. |
twDataShape* twDataShape_CreateFromStream | ( | struct twStream * | s | ) |
Creates a new twDataShape structure from data in a twStream.
[in] | s | A pointer to a twStream to parse. |
void twDataShape_Delete | ( | void * | ds | ) |
Frees all memory associated with a twDataShape structure and all its owned substructures.
[in] | entry | A pointer to the twDataShape structure to delete. |
int twDataShape_GetEntryIndex | ( | struct twDataShape * | ds, |
const char * | name, | ||
int * | index | ||
) |
Gets the index of the twDataShapeEntry with the specified name.
[in] | ds | A pointer to the twDataShape to get the index from. |
[in] | name | The name of the field to get the index of. |
[out] | index | The field index (0 based) of name if successful. |
uint32_t twDataShape_GetLength | ( | struct twDataShape * | ds | ) |
Retrieves the length of a twDataShape.
[in] | entry | A pointer to the twDataShape to retrieve the length of. |
entry
.int twDataShape_SetName | ( | struct twDataShape * | ds, |
char * | name | ||
) |
Sets the name of a twDataShape.
[in] | ds | A pointer to the twDataShape to set the name of. |
[in] | s | The name to set the twDataShape to. |
ds
twDataShape does not take ownership of the s
string. struct cJSON* twDataShape_ToJson | ( | twDataShape * | ds, |
struct cJSON * | parent | ||
) |
Helper function that outputs a twDataShape to a cJSON object.
[in] | ds | The twDataShape to convert. |
[in] | parent | The optional parent twDataShape to add the result to. |
int twDataShape_ToStream | ( | struct twDataShape * | ds, |
twStream * | s | ||
) |
Serializes a twDataShape to a twStream.
[in] | entry | A pointer to the twDataShape to serialize. |
[in,out] | s | A pointer to the twStream to serialize to. |
twDataShapeAspect* twDataShapeAspect_Create | ( | const char * | name, |
twPrimitive * | value | ||
) |
Creates a new twDataShapeAspect structure.
[in] | name | Name of the aspect. |
[in] | value | A pointer to a primitive containing the BaseType and value of the aspect. |
twDataShapeAspect* twDataShapeAspect_CreateFromStream | ( | twStream * | s | ) |
Creates a new twDataShapeAspect structure from data in a twStream.
[in] | stream | A pointer to the twStream to parse. |
void twDataShapeAspect_Delete | ( | void * | aspect | ) |
Frees all memory associated with a twDataShapeAspect and all its owned substructures.
[in] | aspect | A pointer to the twDataShapeAspect to delete. |
int twDataShapeEntry_AddAspect | ( | struct twDataShapeEntry * | entry, |
const char * | name, | ||
twPrimitive * | value | ||
) |
Creates a new twDataShapeAspect with twDataShapeAspect::value value
and adds it to the specified twDataShapeEntry entry
.
[in] | entry | A pointer to the twDataShapeEntry to add the twDataShapeAspect to. |
[in] | name | Name of the aspect. |
[in] | value | A pointer to a primitive containing the BaseType and value of the aspect. |
entry
will gain ownership of the newly allocated twDataShapeAspect. twDataShapeEntry* twDataShapeEntry_Create | ( | const char * | name, |
const char * | description, | ||
enum BaseType | type | ||
) |
Creates a new twDataShapeEntry structure.
[in] | name | Name of the field. |
[in] | value | A description of the field. |
[in] | type | The BaseType associated with the field. |
twDataShapeEntry* twDataShapeEntry_CreateFromStream | ( | struct twStream * | s | ) |
Creates a new twDataShapeEntry structure from data in a twStream.
[in] | s | A pointer to the twStream to parse. |
void twDataShapeEntry_Delete | ( | void * | entry | ) |
Frees all memory associated with a twDataShapeEntry structure and all its owned substructures.
[in] | entry | A pointer to the twDataShapeEntry structure to delete. |
uint32_t twDataShapeEntry_GetLength | ( | struct twDataShapeEntry * | entry | ) |
Retrieves the length of a twDataShapeEntry.
[in] | entry | A pointer to the twDataShapeEntry to retrieve the length of. |
entry
.int twDataShapeEntry_ToStream | ( | struct twDataShapeEntry * | entry, |
twStream * | s | ||
) |
Serializes a twDataShapeEntry to a twStream.
[in] | entry | A pointer to the twDataShapeEntry to serialize. |
[in,out] | s | A pointer to the twStream to serialize to. |
s
pointer and is responsible for freeing it via twStream_Delete(). int twInfoTable_AddRow | ( | twInfoTable * | it, |
twInfoTableRow * | row | ||
) |
Adds a twInfoTableRow to a twInfoTable.
[in] | it | A pointer to the twInfoTable to add the twInfoTableRow to. |
[in] | row | A pointer to the twInfoTableRow to add. |
it
twInfoTable will gain ownership of the row
twInfoTableRow. int twInfoTable_Compare | ( | twInfoTable * | p1, |
twInfoTable * | p2 | ||
) |
Compares two twInfoTable structures for equivalence.
[in] | p1 | A pointer to the twInfoTable to compare against. |
[in] | p2 | A pointer to the twInfoTable to compare. |
twInfoTable* twInfoTable_Create | ( | twDataShape * | shape | ) |
Creates a new twInfoTable.
[in] | shape | A pointer to the twDataShape that the twInfoTable will use. |
twInfoTable* twInfoTable_CreateFromBlob | ( | const char * | name, |
char * | value, | ||
int32_t | length, | ||
char | isImage, | ||
char | duplicate | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_BLOB or TW_IMAGE.
[in] | name | The name to assign to the field. |
[in] | value | A pointer to the char array containing the blob or image. |
[in] | length | The length of the array. |
[in] | isImage | Flag indicating whether value is an TW_IMAGE (#TRUE) or a TW_BLOB (#FALSE). |
[in] | duplicate | Flag to indicate duplication preference. If set to TRUE, value will be copied. If set to FALSE, the twInfoTable will take ownership of /p value. |
twInfoTable* twInfoTable_CreateFromBoolean | ( | const char * | name, |
char | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_BOOLEAN.
[in] | name | The name to assign to the field. |
[in] | value | The boolean value to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromDatetime | ( | const char * | name, |
DATETIME | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_DATETIME.
[in] | name | The name to assign to the field. |
[in] | value | The DATETIME value to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromInteger | ( | const char * | name, |
int32_t | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_INTEGER.
[in] | name | The name to assign to the field. |
[in] | value | The value to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromJson | ( | struct cJSON * | json, |
char * | singleEntryName | ||
) |
Helper function that creates a twInfoTable from a cJSON object. If the JSON object does not represent a valid twInfoTable, a twInfoTable with a single field, single row, of type JSON will be created.
[in] | json | The cJSON object to convert to a twInfoTable. |
[in] | singleEntryName | The name of the field to use for a single entry table (may be NULL, defaults to "_content_"). |
twInfoTable* twInfoTable_CreateFromLocation | ( | const char * | name, |
twLocation * | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_LOCATION.
[in] | name | The name to assign to the field. |
[in] | value | A pointer to the twLocation structure to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromNumber | ( | const char * | name, |
double | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_NUMBER.
[in] | name | The name to assign to the field. |
[in] | value | The value to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromPrimitive | ( | const char * | name, |
twPrimitive * | value | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a type and value specified by value
.
[in] | name | The name to assign to the field. |
[in] | value | A pointer to the twPrimitive structure to create the twInfoTable from. |
twInfoTable* twInfoTable_CreateFromStream | ( | twStream * | s | ) |
Creates a new twInfoTable from data in a twStream.
[in] | s | A pointer to the twStream to parse. |
twInfoTable* twInfoTable_CreateFromString | ( | const char * | name, |
char * | value, | ||
char | duplicate | ||
) |
Helper function to create a twInfoTable with a single field and single row containing a TW_STRING.
[in] | name | The name to assign to the field. |
[in] | value | A pointer to the string to create the twInfoTable from. |
[in] | duplicate | Flag to indicate duplication preference. If set to TRUE, value will be copied. If set to FALSE, the twInfoTable will take ownership of /p value. |
void twInfoTable_Delete | ( | void * | it | ) |
Frees all memory associated with a twInfoTable structure and all its owned substructures.
[in] | entry | A pointer to the twInfoTable structure to delete. |
twInfoTable* twInfoTable_FullCopy | ( | twInfoTable * | it | ) |
Creates a new twInfoTable structure and copies all data from an existing twInfoTable structure to
the newly created twInfoTable structure.
[in] | it | A pointer to the twInfoTable to be copied from. |
it
will not be modified. The calling function will therefore retain ownership of it
and is responsible for freeing it via twInfoTable_Delete(). int twInfoTable_GetBlob | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
char ** | value, | ||
int32_t * | length | ||
) |
Helper function to retrieve a TW_BLOB from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetBoolean | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
char * | value | ||
) |
Helper function to retrieve a TW_BOOLEAN from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetDatetime | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
DATETIME * | value | ||
) |
Helper function to retrieve a TW_DATETIME from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
twInfoTableRow* twInfoTable_GetEntry | ( | twInfoTable * | it, |
int | index | ||
) |
Retrieves the twInfoTableRow from a twInfoTable at the specified (zero based) index.
[in] | it | A pointer to the twInfoTable to retrieve the twInfoTableRow from. |
[in] | index | The zero based index of the twInfoTableRow to retrieve. |
int twInfoTable_GetInteger | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
int32_t * | value | ||
) |
Helper function to retrieve a TW_INTEGER from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetLocation | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
twLocation * | value | ||
) |
Helper function to retrieve a TW_LOCATION from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetNumber | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
double * | value | ||
) |
Helper function to retrieve a TW_NUMBER from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetPrimitive | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
twPrimitive ** | value | ||
) |
Helper function to retrieve a twPrimitive from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
int twInfoTable_GetString | ( | twInfoTable * | it, |
const char * | name, | ||
int32_t | row, | ||
char ** | value | ||
) |
Helper function to retrieve a TW_STRING from a twInfoTable.
[in] | it | A pointer to the twInfoTable to get the value from. |
[in] | name | The name of the field to retrieve. |
[in] | row | The (zero based) index of the row from which to retrieve the value. |
[in] | value | A pointer to store the retrieved data in. |
struct cJSON* twInfoTable_ToJson | ( | twInfoTable * | it | ) |
Helper function that outputs a twInfoTable to a cJSON object.
[in] | it | The twInfoTable to convert. |
int twInfoTable_ToStream | ( | twInfoTable * | it, |
twStream * | s | ||
) |
Serializes a twInfoTable to a twStream.
[in] | it | A pointer to the twInfoTable to serialize. |
[in,out] | s | A pointer to the twStream to serialize to. |
twInfoTable* twInfoTable_ZeroCopy | ( | twInfoTable * | it | ) |
Creates a new twInfoTable structure which inherits all pointers of an existing twInfoTable structure it
. The pointers of it
will be zeroed so that it may be safely deleted.
[in] | it | A pointer to the twInfoTable to be copied from and zeroed. |
it
so that the base structure it
may be deleted without modifying the newly created twInfoTable. The calling function must still free it
via twInfoTable_Delete(). int twInfoTableRow_AddEntry | ( | twInfoTableRow * | row, |
twPrimitive * | entry | ||
) |
Adds a new twPrimitive to a twInfoTableRow.
[in] | row | A pointer to the twInfoTableRow to add the entry to. |
[in] | entry | A pointer to the twPrimitive to add. |
ds
twInfoTableRow takes ownership of the entry
twPrimitive. twInfoTableRow* twInfoTableRow_Create | ( | twPrimitive * | firstEntry | ) |
Creates a new twInfoTableRow.
[in] | firstEntry | A pointer to a twPrimitive to seed the twInfoTableRow with. |
twInfoTableRow* twInfoTableRow_CreateFromStream | ( | twStream * | s | ) |
Creates a new twInfoTableRow from data in a twStream.
[in] | s | A pointer to the twStream to parse. |
void twInfoTableRow_Delete | ( | void * | row | ) |
Deletes a twInfoTableRow structure and frees all memory associated with it.
[in] | entry | A pointer to the twInfoTableRow structure to delete. |
int twInfoTableRow_GetCount | ( | twInfoTableRow * | row | ) |
Gets the number of fields in a twInfoTableRow.
[in] | row | A pointer to the twInfoTableRow get the number of fields of. |
row
if successful, positive integral on error code (see twErrors.h) if an error was encountered. twPrimitive* twInfoTableRow_GetEntry | ( | twInfoTableRow * | row, |
int | index | ||
) |
Gets the twPrimitive value of an entry in a twInfoTableRow.
[in] | row | A pointer to the twInfoTableRow to get the value from. |
[in] | index | The (zero based) index of the field to retrieve. |
index
of row
. Returns NULL if an error occurred. uint32_t twInfoTableRow_GetLength | ( | twInfoTableRow * | row | ) |
Gets the length of a twInfoTableRow.
[in] | row | A pointer to the twInfoTableRow get the length of. |
row
.int twInfoTableRow_ToStream | ( | twInfoTableRow * | row, |
twStream * | s | ||
) |
Serializes a twInfoTableRow to a twStream.
[in] | row | A pointer to the twInfoTableRow to serialize. |
[in,out] | s | A pointer to the twStream to serialize to. |
s
and is responsible for freeing it via twStream_Delete().