Group StringAccess¶
The functions in this section provide access to string nodes using character pointers and arrays. This includes getters and setters of values and value lengths.
Public Functions¶
| Type | Name |
|---|---|
| spinStringGetMaxLength (spinNodeHandle hNode, int64_t * pValue) |
|
| spinStringGetValue (spinNodeHandle hNode, char * pBuf, size_t * pBufLen) |
|
| spinStringGetValueEx (spinNodeHandle hNode, bool8_t bVerify, char * pBuf, size_t * pBufLen) |
|
| spinStringSetValue (spinNodeHandle hNode, const char * pBuf) |
|
| spinStringSetValueEx (spinNodeHandle hNode, bool8_t bVerify, const char * pBuf) |
Public Functions Documentation¶
function spinStringGetMaxLength¶
Retrieves the maximum length of the c-string to be returned
See also: spinError
Parameters:
hNodeThe string node of the length to retrievepValueThe integer pointer in which the maximum length of the c-string is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinStringGetValue¶
Retrieves the value of a string node as a c-string
See also: spinError
Parameters:
hNodeThe string node of the value to readpBufThe c-string character buffer in which the value of the node is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinStringGetValueEx¶
Retrieves the value of a string node as a cstring; manually set whether to verify the node
See also: spinError
Parameters:
hNodeThe string node of the value to readbVerifyThe boolean of whether to verify the nodepBufThe c-string character buffer in which the value of the node is returnedpBufLenThe unsigned integer pointer in which the length of the c-string is returned; the input value is the maximum length
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinStringSetValue¶
Sets the value of a string node
See also: spinError
Parameters:
hNodeThe string node having its value changedpBufThe c-string of the value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinStringSetValueEx¶
Sets the value of a string node; manually set whether to verify the node
See also: spinError
Parameters:
hNodeThe string node having its value changedbVerifyThe boolean of whether to verify the nodepBufThe c-string of the value to set
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error