NodeMap#

Functions

ITALA_API_C ItalaError NODEMAP_GetNode(H_NODEMAP hNodeMap, const char *nodeName, H_NODE *phNode)#

Get a node by its name.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

  • nodeName[in] Name of the node to retrieve.

  • phNode[out] Handle to Node instance.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.

ITALA_API_C ItalaError NODEMAP_GetNumNodes(H_NODEMAP hNodeMap, size_t *pNumNodes)#

Get number of nodes in the nodemap.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

  • pNumNodes[out] Number of nodes.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.

ITALA_API_C ItalaError NODEMAP_GetNodeByIndex(H_NODEMAP hNodeMap, size_t index, H_NODE *phNode)#

Get a node handler, given the specific index.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

  • index[in] Index of Node.

  • phNode[out] Handle to Node instance.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.

ITALA_API_C ItalaError NODEMAP_InvalidateNodes(H_NODEMAP hNodeMap)#

Invalidate all the node of the nodemap.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.

ITALA_API_C ItalaError NODEMAP_GetDeviceName(H_NODEMAP hNodeMap, char *deviceName, size_t *pSize)#

Get the device name that owns the nodemap.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

  • deviceName[out] The name of the device.

  • pSize[inout] Maximum element of the array in input, number of element filled in output.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.

ITALA_API_C ItalaError NODEMAP_Poll(H_NODEMAP hNodeMap, int64_t elapsedTime)#

Fires nodes which have a polling time in the nodemap.

Parameters:
  • hNodeMap[in] Handle to NodeMap instance.

  • elapsedTime[out] Elapsed time.

Returns:

ItalaError the error code; return ItalaErrorSuccess (0) if no errors occures.