Link.createHard

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.

A hard link is a direct pointer to an object. The object will not be deleted until all hard links to it are removed.

Parameters

srcLocLocation identifier of the source object
srcNameName of the source object
dstLocLocation identifier where the new link will be created
dstNameName of the new link
lcplLink creation property list (default: H5P_DEFAULT)
laplLink access property list (default: H5P_DEFAULT)

Throws

HDF5Exception if link creation fails.