ddn.data.hdf5.link

HDF5 Link Wrapper

This module provides a D wrapper for HDF5 link operations. Links are the connections between groups and objects in an HDF5 file.

License

BSD-3-Clause
struct Link

Types 1

structLink

Static wrapper for HDF5 link operations.

This struct provides static methods for creating, querying, and managing links in HDF5 files. Links connect groups to objects (datasets, groups, or committed datatypes).

Example:

// Create a hard link
Link.createHard(file.handle(), "/original", file.handle(), "/hardlink");

// Create a soft link
Link.createSoft("/target/path", file.handle(), "/softlink");

// Check if a link exists
if (Link.exists(file.handle(), "/mylink")) {
    // Link exists
}

Methods
void createHard(hid_t srcLoc, string srcName, hid_t dstLoc, string dstName, hid_t lcpl = H5P_DEFAULT, hid_t lapl = H5P_DEFAULT)Creates a hard link to an existing object.
void createSoft(string targetPath, hid_t linkLoc, string linkName, hid_t lcpl = H5P_DEFAULT, hid_t lapl = H5P_DEFAULT)Creates a soft (symbolic) link.
void createExternal(string fileName, string objName, hid_t linkLoc, string linkName, hid_t lcpl = H5P_DEFAULT, hid_t lapl = H5P_DEFAULT)Creates an external link to an object in another file.
bool exists(hid_t locId, string name, hid_t lapl = H5P_DEFAULT)Checks if a link exists at the specified location.
H5L_info2_t getInfo(hid_t locId, string name, hid_t lapl = H5P_DEFAULT)Gets information about a link.
ubyte[] getValue(hid_t locId, string name, size_t bufSize, hid_t lapl = H5P_DEFAULT)Gets the value of a soft or external link.
string getSoftLinkTarget(hid_t locId, string name, hid_t lapl = H5P_DEFAULT)Gets the target path of a soft link as a string.
void delete_(hid_t locId, string name, hid_t lapl = H5P_DEFAULT)Deletes a link.
void move(hid_t srcLoc, string srcName, hid_t dstLoc, string dstName, hid_t lcpl = H5P_DEFAULT, hid_t lapl = H5P_DEFAULT)Moves a link to a new location.
void copy(hid_t srcLoc, string srcName, hid_t dstLoc, string dstName, hid_t lcpl = H5P_DEFAULT, hid_t lapl = H5P_DEFAULT)Copies a link to a new location.
string[] getNames(hid_t grpId, H5_index_t indexType = H5_index_t.NAME, H5_iter_order_t order = H5_iter_order_t.INC)Gets the names of all links in a group.
static auto getAll(hid_t grpId, H5_index_t indexType = H5_index_t.NAME, H5_iter_order_t order = H5_iter_order_t.INC)Gets information about all links in a group.