Function utils::writeBoolAttr
Defined in File HDF5Utils.hpp
Function Documentation
-
void utils::writeBoolAttr(hid_t loc, const std::string &name, bool value)
Write a scalar boolean attribute on an HDF5 object.
Stored as HDF5’s own native hbool_t, mirroring writeULongAttr()’s identical pattern for unsigned long.
- Parameters:
loc – Handle to the object (a group, dataset, or file) to attach the attribute to
name – Name of the attribute
value – Value of the attribute
- Throws:
std::runtime_error – if the attribute cannot be created