Page tree

The license could not be verified: License Certificate has expired!

Purpose:

Creates and writes an attribute and is a generic replacement for data type specific Fortran h5ltset_attribute_*_f APIs. There is no C equivalent API.

Fortran Interface:

subroutine h5ltset_attribute_f(loc_id, dset_name, attr_name, &
                                      buf, buf_type, SizeOf_buf_type, size, errcode )
  implicit none
  integer(HID_T),   intent(IN) :: loc_id          ! file or group identifier 
  character(LEN=*), intent(IN) :: dset_name       ! name of the dataset 
  character(LEN=*), intent(IN) :: attr_name       ! name of the attribute
  type(C_PTR) :: buf                              ! data buffer
  character(LEN=*), INTENT(in) :: buf_type        ! valid data types are:
                                                  !    CHARACTER, INTEGER or REAL
                                                  !    NOTE: only the first character matters and is case insensitive 
  integer(size_t), intent(IN) :: size             ! size of attribute array
  integer(size_t),  intent(IN) :: SizeOf_buf_type ! size of buf's data type 
  integer :: errcode                              ! error code
end subroutine h5ltset_attribute_f
 

 

--- Last Modified: August 14, 2019 | 12:07 PM