00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 #ifndef H5FDlog_H
00023 #define H5FDlog_H
00024 
00025 #include "H5Ipublic.h"
00026 
00027 #define H5FD_LOG        (H5FD_log_init())
00028 
00029 
00030 
00031 #define H5FD_LOG_LOC_READ   0x0001
00032 #define H5FD_LOG_LOC_WRITE  0x0002
00033 #define H5FD_LOG_LOC_SEEK   0x0004
00034 #define H5FD_LOG_LOC_IO     (H5FD_LOG_LOC_READ|H5FD_LOG_LOC_WRITE|H5FD_LOG_LOC_SEEK)
00035 
00036 #define H5FD_LOG_FILE_READ  0x0008
00037 #define H5FD_LOG_FILE_WRITE 0x0010
00038 #define H5FD_LOG_FILE_IO    (H5FD_LOG_FILE_READ|H5FD_LOG_FILE_WRITE)
00039 
00040 #define H5FD_LOG_FLAVOR     0x0020
00041 
00042 #define H5FD_LOG_NUM_READ   0x0040
00043 #define H5FD_LOG_NUM_WRITE  0x0080
00044 #define H5FD_LOG_NUM_SEEK   0x0100
00045 #define H5FD_LOG_NUM_IO     (H5FD_LOG_NUM_READ|H5FD_LOG_NUM_WRITE|H5FD_LOG_NUM_SEEK)
00046 
00047 #define H5FD_LOG_TIME_OPEN  0x0200      
00048 #define H5FD_LOG_TIME_READ  0x0400      
00049 #define H5FD_LOG_TIME_WRITE 0x0800      
00050 #define H5FD_LOG_TIME_SEEK  0x1000      
00051 #define H5FD_LOG_TIME_CLOSE 0x2000      
00052 #define H5FD_LOG_TIME_IO    (H5FD_LOG_TIME_OPEN|H5FD_LOG_TIME_READ|H5FD_LOG_TIME_WRITE|H5FD_LOG_TIME_SEEK|H5FD_LOG_TIME_CLOSE)
00053 
00054 #define H5FD_LOG_ALLOC      0x4000
00055 #define H5FD_LOG_ALL        (H5FD_LOG_ALLOC|H5FD_LOG_TIME_IO|H5FD_LOG_NUM_IO|H5FD_LOG_FLAVOR|H5FD_LOG_FILE_IO|H5FD_LOG_LOC_IO)
00056 
00057 #ifdef __cplusplus
00058 extern "C" {
00059 #endif
00060 
00061 H5_DLL hid_t H5FD_log_init(void);
00062 H5_DLL void H5FD_log_term(void);
00063 H5_DLL herr_t H5Pset_fapl_log(hid_t fapl_id, const char *logfile, unsigned flags, size_t buf_size);
00064 
00065 #ifdef __cplusplus
00066 }
00067 #endif
00068 
00069 #endif