Attribute.exists

bool exists(hid_t locId, string name)

Checks if an attribute exists on an object.

Parameters

locIdLocation identifier
nameName of the attribute to check

Returns

true if the attribute exists, false otherwise

Throws

HDF5Exception if the check fails