ddn.data.hdf5.visitor
HDF5 Iteration and Visitor Support
This module provides D-idiomatic iteration helpers for HDF5 objects, attributes, and links with delegate-based callbacks.
License
BSD-3-Clause
Types 7
enumIndexType
Index type for iteration ordering.
NAME = H5_index_t.NAMEIndex by name
CREATION_ORDER = H5_index_t.CRT_ORDERIndex by creation order
enumIterOrder
Iteration order.
INCREASING = H5_iter_order_t.INCIncreasing order
DECREASING = H5_iter_order_t.DECDecreasing order
NATIVE = H5_iter_order_t.NATIVENative order (fastest)
enumObjectType
Object type enumeration.
UNKNOWN = H5O_type_t.UNKNOWNUnknown object type
GROUP = H5O_type_t.GROUPGroup
DATASET = H5O_type_t.DATASETDataset
NAMED_DATATYPE = H5O_type_t.NAMED_DATATYPENamed datatype
enumLinkType
Link type enumeration.
HARD = H5L_type_t.HARDHard link
SOFT = H5L_type_t.SOFTSoft link
EXTERNAL = H5L_type_t.EXTERNALExternal link
structAttributeInfo
Information about an attribute during iteration.
Fields
string nameName of the attributebool creationOrderValidWhether creation order is validlong creationOrderCreation order indexint characterSetCharacter set used for attribute namehsize_t dataSizeSize of raw datastructLinkInfo
Information about a link during iteration.
Fields
string nameName of the linkLinkType typeType of the linkbool creationOrderValidWhether creation order is validlong creationOrderCreation order indexint characterSetCharacter set used for link namestructObjectInfo
Information about an object during visitation.
Fields
string nameName/path of the objectObjectType typeType of the objecthsize_t numAttributesNumber of attributesuint refCountReference countlong accessTimeAccess timelong modificationTimeModification timelong changeTimeChange timelong birthTimeBirth timeFunctions 4
fn
hsize_t iterateAttributes(hid_t locId, bool delegate(AttributeInfo) dg,
IndexType indexType = IndexType.NAME, IterOrder order = IterOrder.NATIVE)Iterates over attributes attached to an object.fn
hsize_t iterateLinks(hid_t groupId, bool delegate(LinkInfo) dg,
IndexType indexType = IndexType.NAME, IterOrder order = IterOrder.NATIVE)Iterates over links in a group.fn
hsize_t visitLinks(hid_t groupId, bool delegate(LinkInfo) dg,
IndexType indexType = IndexType.NAME, IterOrder order = IterOrder.NATIVE)Recursively visits all links in a group and its subgroups.fn
hsize_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.