diff options
author | Robb Matzke <matzke@llnl.gov> | 1999-06-07 15:58:05 (GMT) |
---|---|---|
committer | Robb Matzke <matzke@llnl.gov> | 1999-06-07 15:58:05 (GMT) |
commit | ea779932661939d403495d867dc492f7fe981f02 (patch) | |
tree | 50be69dbc30890c195530df31acf6d44f3610f4b /tools/h5tools.h | |
parent | 5bfee94f46b5e95d164cb0ac5a427955f1ee8330 (diff) | |
download | hdf5-ea779932661939d403495d867dc492f7fe981f02.zip hdf5-ea779932661939d403495d867dc492f7fe981f02.tar.gz hdf5-ea779932661939d403495d867dc492f7fe981f02.tar.bz2 |
[svn-r1308] Changes since 19990607
----------------------
./tools/h5ls.c
./tools/h5tools.c
./tools/h5tools.h
Finished the `-x' or `--hexdump' switch, which causes all data
to be printed in hexadecimal format with no translation from
file to memory data type.
Diffstat (limited to 'tools/h5tools.h')
-rw-r--r-- | tools/h5tools.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/h5tools.h b/tools/h5tools.h index c0ffab6..474ee4d 100644 --- a/tools/h5tools.h +++ b/tools/h5tools.h @@ -20,7 +20,15 @@ typedef struct h5dump_t { /* * Fields associated with formatting numeric data. If a datatype matches * multiple formats based on its size, then the first applicable format - * from this list is used. + * from this list is used. However, if `raw' is non-zero then dump all + * data in hexadecimal format without translating from what appears on + * disk. + * + * raw: If set then print all data as hexadecimal without + * performing any conversion from disk. + * + * fmt_raw: The printf() format for each byte of raw data. The + * default is `%02x'. * * fmt_int: The printf() format to use when rendering data which is * typed `int'. The default is `%d'. @@ -71,6 +79,8 @@ typedef struct h5dump_t { * * Numeric data is also subject to the formats for individual elements. */ + hbool_t raw; + const char *fmt_raw; const char *fmt_int; const char *fmt_uint; const char *fmt_schar; @@ -232,7 +242,7 @@ int copy_atomic_char(char* output, char* input, int numchar, int freespace); /*if we get a new program that needs to use the library add its name here*/ typedef enum { - UNKNOWN, + UNKNOWN, H5LS, H5DUMP } ProgType; |