1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
 hbool_t
 _saf_is_primitive_type(hid_t type)
 {
     SAF_ENTER(_saf_is_primitive_type, FALSE);
     hbool_t     retval=FALSE;

     /* Opaque types are specificaly excluded from this list because they're sometimes used for much more complex SSlib
      * datatypes. */
     retval = (H5T_INTEGER==H5Tget_class(type) ||
               H5T_FLOAT==H5Tget_class(type) ||
               H5T_TIME==H5Tget_class(type) ||
               H5T_BITFIELD==H5Tget_class(type) ||
               H5T_ENUM==H5Tget_class(type));

     SAF_LEAVE(retval);
 }