diff options
author | Robb Matzke <matzke@llnl.gov> | 1998-01-29 19:36:16 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1998-01-29 19:36:16 (GMT) |
commit | 28e23330df9b9d35c1c13e1f983f66b4a98afe36 (patch) | |
tree | 99483b64cdc89e319b68d57c2ad99da250712529 /src/H5Tpublic.h | |
parent | 5761b90f63b5f3d69e914cfbe7a4619cce9bfc4b (diff) | |
download | hdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.zip hdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.tar.gz hdf5-28e23330df9b9d35c1c13e1f983f66b4a98afe36.tar.bz2 |
[svn-r197] Changes since 19980129
----------------------
./config/freebds2.2.1
./config/irix64
./config/linux
Added -DH5T_DEBUG to the debugging flags. Also changed `true'
to `:' for the Irix64 ranlib program. This turns on printing
of data type conversion statistics when the program exits.
./html/Datatypes.html
Fixed documentation for data conversion functions and updated
examples.
./src/H5D.c
The I/O pipeline updates data type conversion statistics.
./src/H5T.c
./src/H5Tconv.c
./src/H5Tpkg.h
./src/H5Tpublic.h
Cleaned up data type conversion registration interface.
Diffstat (limited to 'src/H5Tpublic.h')
-rw-r--r-- | src/H5Tpublic.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h index 1f40151..03becfa 100644 --- a/src/H5Tpublic.h +++ b/src/H5Tpublic.h @@ -23,9 +23,6 @@ #define HOFFSET(S,M) ((const char*)&S.M-(const char*)&S) #define HPOFFSET(P,M) ((const char*)&(P->M)-(const char*)P) -#define H5T_CONV_INIT 0 -#define H5T_CONV_FREE 1 - /* These are the various classes of data types */ typedef enum H5T_class_t { H5T_NO_CLASS = -1, /*error */ @@ -102,10 +99,20 @@ typedef enum H5T_bkg_t { H5T_BKG_YES = 2 /*init bkg buf with data before conversion */ } H5T_bkg_t; +/* Commands sent to conversion functions */ +typedef enum H5T_cmd_t { + H5T_CONV_INIT = 0, /*query and/or initialize private data */ + H5T_CONV_CONV = 1, /*convert data from source to dest data type */ + H5T_CONV_FREE = 2 /*function is being removed from path */ +} H5T_cmd_t; + /* Type conversion client data */ typedef struct H5T_cdata_t { + H5T_cmd_t command;/*what should the conversion function do? */ H5T_bkg_t need_bkg;/*is the background buffer needed? */ hbool_t recalc; /*recalculate private data */ + unsigned long ncalls; /*number of calls to conversion function */ + unsigned long nelmts; /*total number of data points converted */ void *priv; /*private data */ } H5T_cdata_t; |