H5Tget_class(
hid_t dtype_id
)
H5Tget_class returns the datatype class identifier.
Valid class identifiers, as defined in H5Tpublic.h, are:
H5T_INTEGER
H5T_FLOAT
H5T_STRING
H5T_BITFIELD
H5T_OPAQUE
H5T_COMPOUND
H5T_REFERENCE
H5T_ENUM
H5T_VLEN
H5T_ARRAY
Note that the library returns H5T_STRING
for both fixed-length and variable-length strings.
Unsupported datatype:
The time datatype class, H5T_TIME, is not supported.
If H5T_TIME is used, the resulting data will be
readable and modifiable only on the originating computing platform;
it will not be portable to other platforms.
hid_t dtype_id |
IN: Identifier of datatype to query. |
H5T_NO_CLASS (-1).
SUBROUTINE h5tget_class_f(type_id, class, hdferr)
IMPLICIT NONE
INTEGER(HID_T), INTENT(IN) :: type_id ! Datatype identifier
INTEGER, INTENT(OUT) :: class ! Datatype class, possible values are:
! H5T_NO_CLASS_F
! H5T_INTEGER_F
! H5T_FLOAT_F
! H5T_STRING_F
! H5T_BITFIELD_F
! H5T_OPAQUE_F
! H5T_COMPOUND_F
! H5T_REFERENCE_F
! H5T_ENUM_F
! H5T_VLEN_F
! H5T_ARRAY_F
INTEGER, INTENT(OUT) :: hdferr ! Error code
! 0 on success and -1 on failure
END SUBROUTINE h5tget_class_f