Attribute.create

Attribute create(hid_t locId, string name, hid_t typeId, hid_t spaceId, hid_t acpl = H5P_DEFAULT, hid_t aapl = H5P_DEFAULT)

Creates a new attribute.

Parameters

locIdLocation identifier (file, group, or dataset handle)
nameName of the attribute to create
typeIdDatatype identifier
spaceIdDataspace identifier
acplAttribute creation property list (default: H5P_DEFAULT)
aaplAttribute access property list (default: H5P_DEFAULT)

Returns

A new Attribute instance

Throws

HDF5Exception if attribute creation fails