summaryrefslogtreecommitdiffstats
path: root/src/H5Fpublic.h
blob: 538b07b7f81a34d685d005e1f2b1b6ae74e6dd6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/****************************************************************************
 * NCSA HDF                                                                 *
 * Software Development Group                                               *
 * National Center for Supercomputing Applications                          *
 * University of Illinois at Urbana-Champaign                               *
 * 605 E. Springfield, Champaign IL 61820                                   *
 *                                                                          *
 * For conditions of distribution and use, see the accompanying             *
 * hdf/COPYING file.                                                        *
 *                                                                          *
 ****************************************************************************/

/*
 * This file contains public declarations for the H5F module.
 */
#ifndef _H5Fpublic_H
#define _H5Fpublic_H

/* Public header files needed by this file */
#include <H5public.h>
#include <H5Apublic.h>

/* file access codes */
#define H5ACC_DEFAULT       0x0000/*use in H5Fopen & H5Fcreate to open a file with default access*/
#define H5ACC_WRITE         0x0001/*use in H5Fopen to open a file with write access*/
#define H5ACC_OVERWRITE     0x0002/*use in H5Fcreate truncate an existing file*/
#ifdef HAVE_PARALLEL
#define H5ACC_INDEPENDENT   0x0010/*use in H5Cset_mpi for MPI independent access*/
#define H5ACC_COLLECTIVE    0x0011/*use in H5Cset_mpi for MPI collective access*/
#endif


#ifdef __cplusplus
extern "C" {
#endif

/* Functions in H5F.c */
hbool_t H5Fis_hdf5 (const char *filename);
hid_t H5Fcreate (const char *filename, uintn flags, hid_t create_template,
                 hid_t access_template);
hid_t H5Fopen (const char *filename, uintn flags, hid_t access_template);
herr_t H5Fclose (hid_t fid);
hid_t H5Fget_create_template (hid_t fid);

#ifdef __cplusplus
}
#endif
#endif