Group CNodeAccess¶
The functions in this section provide access to information and objects retrieved from nodes. This includes node properties and callback registration.
Public Functions¶
Public Functions Documentation¶
function spinNodeDeregisterCallback¶
Unregisters a callback from a node
See also: spinError
Parameters:
hNodeThe node from which to unregister the callbackhCbThe callback handle to unregister
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetAccessMode¶
Retrieves the access mode of a node (as an enum, spinAccessMode)
See also: spinError
See also: spinAccessMode
Parameters:
hNodeThe node of the access mode to retrievepAccessModeThe access mode enum pointer in which the access mode is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetCachingMode¶
Retrieves the caching mode of a node (as an enum, spinCachingMode)
See also: spinError
See also: spinCachingMode
Parameters:
hNodeThe node of the caching mode to retrievepCachingModeThe caching mode enum pointer in which the caching mode is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetDescription¶
Retrieves a longer description of a node
See also: spinError
Parameters:
hNodeThe node of the description to retrievepBufThe c-string character buffer in which the longer descrition 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 spinNodeGetDisplayName¶
Retrieves the display name of a node (whitespace possible)
See also: spinError
Parameters:
hNodeThe node of the display name to retrievepBufThe c-string character buffer in which the display name 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 spinNodeGetImposedAccessMode¶
Retrieves the imposed access mode of a node
See also: spinError
Parameters:
hNodeThe node of the imposed access mode to retrieveimposedAccessModeThe access mode enum pointer in which the imposed access mode is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetImposedVisibility¶
Retrieves the imposed visibility of a node
See also: spinError
Parameters:
hNodeThe node of the visibility to imposeimposedVisibilityThe visibility enum pointer in which the imposed visibility is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetName¶
Retrieves the name of a node (no whitespace)
See also: spinError
Parameters:
hNodeThe node of the name to retrievepBufThe c-string character buffer in which the name 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 spinNodeGetNameSpace¶
Retrieve the namespace of a node (as an enum, spinNameSpace)
See also: spinError
See also: spinNameSpace
Parameters:
hNodeThe node of the namespace to retrievepNamespaceThe namespace enum pointer in which the namespace is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetPollingTime¶
Retrieve the polling time of a node
See also: spinError
Parameters:
hNodeThe node of the polling time to retrievepPollingTimeThe integer pointer in which the polling time is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetToolTip¶
Retrieves a short description of a node
See also: spinError
Parameters:
hNodeThe node of the tooltip to retrievepBufThe c-string character buffer in which the short description 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 spinNodeGetType¶
Retrieves the type of a node (as an enum, spinNodeType)
See also: spinError
See also: spinNodeType
Parameters:
hNodeThe node of the node type to retrievepTypeThe node type enum pointer in which the type of node is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeGetVisibility¶
Retrieves the recommended visibility of a node (as an enum, spinVisibility)
See also: spinError
See also: spinVisibility
Parameters:
hNodeThe node of the visibility to retrievepVisibilityThe visibility enum pointer in which the visibility is returned
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeInvalidateNode¶
Invalidates a node in case its values may have changed, rendering it no longer valid
See also: spinError
Parameters:
hNodeThe node whose values may have changed
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeIsAvailable¶
Checks whether a node is available
See also: spinError
Parameters:
hNodeThe node to checkpbResultThe boolean pointer to return whether or not the node is available
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeIsEqual¶
Checks whether two nodes are equal
See also: spinError
Parameters:
hNodeFirstThe first node to checkhNodeSecondThe second node to checkpbResultThe boolean pointer to return whether or not the two nodes are equal
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeIsImplemented¶
Checks whether a node is implemented
See also: spinError
Parameters:
hNodeThe node to checkpbResultThe boolean pointer to return whether or not the node is implemented
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeIsReadable¶
Checks whether a node is readable
See also: spinError
Parameters:
hNodeThe node to checkpbResultThe boolean pointer to return whether or not the node is readable
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeIsWritable¶
Checks whether a node is writable
See also: spinError
Parameters:
hNodeThe node to checkpbResultThe boolean pointer to return whether or not the node is writable
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error
function spinNodeRegisterCallback¶
spinNodeRegisterCallback (
spinNodeHandle hNode,
spinNodeCallbackFunction pCbFunction,
spinNodeCallbackHandle * phCb
)
Registers a callback to a node
See also: spinError
Parameters:
hNodeThe node on which to register the callbackpCbFunctionThe function pointer of the function that will execute when the callback is triggered; must match signature "void spinNodeCallbackFunction(spinNodeHandle hNode)"phCbThe callback handle pointer in which the callback is returned; used to unregister callbacks
Returns:
spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error