Given the identifier of an open file,
file_id, and the desired object types,
types, H5F_GET_OBJ_COUNT returns the number of open object identifiers for the file.
To retrieve a count of open identifiers for open objects in all HDF5 application files that are currently open, pass the value
The types of objects to be counted are specified in
types as follows:
|Named datatypes only|
|All of the above |
|Restrict search to objects opened through current file identifier. |
H5F_OBJ_LOCAL does not stand alone; it is effective only when used in combination with one or more of the preceding types. For example,
would count all datasets and groups opened through the current file identifier.
Multiple object types can be combined with the logical
OR operator (
|). For example, the expression
(H5F_OBJ_DATASET|H5F_OBJ_GROUP) would call for datasets and groups.