Page tree

 

JAVA

FORTRAN

C++

C

 

Link

H5T_GET_CLASS

Returns the datatype class identifier

Procedure:

H5T_GET_CLASS (dtype_id)

Signature:

H5T_class_t H5Tget_class( hid_t dtype_id )

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

Parameters:
hid_t dtype_id    IN: Identifier of datatype to query

Description:

 H5T_GET_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.

Returns:

Returns datatype class identifier if successful; otherwise H5T_NO_CLASS (-1).

Example:

Coming Soon!

--- Last Modified: May 16, 2019 | 09:23 AM