visitObjects

fnhsize_t visitObjects(hid_t locId, bool delegate(ObjectInfo) dg, IndexType indexType = IndexType.NAME, IterOrder order = IterOrder.NATIVE)

Recursively visits all objects in a file or group.

The delegate is called for each object encountered during the recursive walk. Return true from the delegate to continue visitation, false to stop early.

Parameters

locIdLocation identifier (file or group) to start visitation from
dgDelegate to call for each object
indexTypeType of index to use (default: NAME)
orderIteration order (default: NATIVE)

Returns

The number of objects visited

Throws

HDF5Exception if visitation fails

Any exception thrown by the delegate