Back to index

salome-kernel  6.5.0
Functions
HDFattrRead.c File Reference
#include "hdfi.h"

Go to the source code of this file.

Functions

hdf_err HDFattrRead (hdf_idt id, void *val)

Function Documentation

hdf_err HDFattrRead ( hdf_idt  id,
void *  val 
)

Definition at line 41 of file HDFattrRead.c.

{
  hdf_err ret = -1;
  hdf_idt type_hdf;
  
  if ((type_hdf = H5Aget_type(id)) >= 0) {
#if defined (PCLINUX) || defined (PCLINUX64)
    if ((H5Tget_class(type_hdf) == H5T_INTEGER) && (H5Tget_size(type_hdf) == 4)) 
      type_hdf = H5T_NATIVE_INT;
#endif 
    ret = H5Aread(id, type_hdf, val);
  }

  H5Tclose(type_hdf);
  return ret;
}

Here is the caller graph for this function: