Commit 03986b00 authored by gsell's avatar gsell

src/include/g5core/h5_{file.types}.h

- enum used for file modes instead of macros
parent ad83c384
......@@ -18,27 +18,6 @@
#include "h5core/h5_types.h"
/*
file modes:
H5_O_RDONLY:
read data from existing file
H5_O_WRONLY:
create new file, if file not exists; write new or overwrite
existing data
H5_O_APPENDONLY:
allows to append new data to an existing file
H5_O_RDWR:
create new file, if file not exists; read and (over-)write data
*/
#define H5_O_RDWR 0x00000001
#define H5_O_RDONLY 0x00000002
#define H5_O_WRONLY 0x00000004
#define H5_O_APPENDONLY 0x00000008
#ifdef __cplusplus
extern "C" {
#endif
......
......@@ -26,6 +26,29 @@ typedef enum {
H5_ID_T,
} h5_types_t;
/*
file modes:
H5_O_RDONLY:
read data from existing file
H5_O_WRONLY:
create new file, if file not exists; write new or overwrite
existing data
H5_O_APPENDONLY:
allows to append new data to an existing file
H5_O_RDWR:
create new file, if file not exists; read and (over-)write data
*/
typedef enum {
H5_O_RDWR = 0x01,
H5_O_RDONLY = 0x02,
H5_O_WRONLY = 0x04,
H5_O_APPENDONLY = 0x08
} h5_file_modes_t;
#ifdef WIN32
typedef __int64 int64_t;
#endif /* WIN32 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment