Creating an Attribute
Function Syntax
Create an attribute attached to a specified object.
hid_t H5Acreate2(hid_t loc, const char *name, hid_t datatypeId, hid_t spaceId, hid_t createPlistId, hid_t accessPlistId )
Parameters
Parameter |
Description |
Value Range |
Input/Output |
|---|---|---|---|
loc |
Location identifier, which may be that of a file, group, dataset, or named data type |
Integer |
Input |
*name |
Attribute name |
Non-empty string of less than 256 bytes |
Input |
datatypeId |
Attribute data type identifier |
Integer |
Input |
spaceId |
Data space identifier |
Integer |
Input |
createPlistId |
Attribute creation property list identifier |
Integer. The acpl_id parameter is currently not used. Specify H5P_DEFAULT. |
Input |
accessPlistId |
Attribute access property list identifier |
Integer. The aapl_id parameter is currently not used. Specify H5P_DEFAULT. |
Input |
Return Value
- Success: attribute identifier
- Failure: negative value
Parent topic: Attribute APIs