Opens an attribute specified by name (DEPRECATED)
Procedure:
H5A_OPEN_NAME(loc_id, name)
Signature:
hid_t H5Aopen_name
(
hid_t loc_id,
const char *name
)
SUBROUTINE h5aopen_name_f(obj_id, name, attr_id, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: obj_id ! Object identifier
CHARACTER(LEN=*), INTENT(IN) :: name ! Attribute name
INTEGER(HID_T), INTENT(OUT) :: attr_id ! Attribute identifier
INTEGER, INTENT(OUT) :: hdferr ! Error code:
! 0 on success and -1 on failure
END SUBROUTINE h5aopen_name_f
Parameters:
hid_t loc_id | IN: Identifier of a group, dataset, or named datatype that attribute is attached to |
const char * name | IN: Attribute name |
Description:
H5A_OPEN_NAME opens an attribute specified by its name, name
, which is attached to the object specified with loc_id
. The location object may be either a group, dataset, or named datatype, which may have any sort of attribute. The attribute identifier returned from this function must be released with H5A_CLOSE or resource leaks will develop.
Returns:
Returns attribute identifier if successful; otherwise returns a negative value.
Example:
--- Last Modified: April 10, 2018 | 02:45 PM