Reference.createAttribute

Reference createAttribute(hid_t locId, string name, string attrName, hid_t oapl = H5P_DEFAULT)

Creates an attribute reference.

Parameters

locIdLocation identifier (file or group handle)
namePath to the object containing the attribute
attrNameName of the attribute to reference
oaplObject access property list (default: H5P_DEFAULT)

Returns

A new Reference instance pointing to the attribute

Throws

HDF5Exception if reference creation fails