18.2 HDF5 Handles

Topic Version1Published09/11/2015
For StandardRESQML v2.0.1

The HDF5 API uses a handle-based pattern. This means that the typical programming scenario is as follows:

  • Create or open an HDF5 element, such as a file or Dataset. HDF5 returns a handle of type hid_t.
  • Interact with the HDF5 element using the handle.
  • Close the handle using the appropriate “close” method. For example, you can close a file handle using the H5Fclose function.

In the examples below, the closing of handles is omitted for clarity.