iterateAttributes

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

Iterates over attributes attached to an object.

The delegate is called for each attribute, receiving an AttributeInfo struct. Return true from the delegate to continue iteration, false to stop early.

Parameters

locIdObject identifier (file, group, dataset, or named datatype)
dgDelegate to call for each attribute
indexTypeType of index to use (default: NAME)
orderIteration order (default: NATIVE)

Returns

The number of attributes iterated over

Throws

HDF5Exception if iteration fails

Any exception thrown by the delegate