Back to index

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

Go to the source code of this file.

Functions

hdf_idt HDFfileOpen (char *name, hdf_access_mode access_mode)

Function Documentation

hdf_idt HDFfileOpen ( char *  name,
hdf_access_mode  access_mode 
)

Definition at line 41 of file HDFfileOpen.c.

{ 
  hdf_idt fid;
  int mode;

  switch(access_mode)
    {
    case HDF_RDONLY:
      mode = H5F_ACC_RDONLY;
      break;

    case HDF_RDWR :
      mode = H5F_ACC_RDWR; 
      break;

    default :
      return -1;
    }  

  if ((fid = H5Fopen(name,mode,H5P_DEFAULT)) < 0)
    return -1;

  return fid;
}

Here is the caller graph for this function: