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

- enum used for file modes instead of macros
This commit is contained in:
2016-07-08 17:11:28 +02:00
parent ad83c3841b
commit 03986b00ac
2 changed files with 23 additions and 21 deletions
-21
View File
@@ -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
+23
View File
@@ -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 */