mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
[svn-r2768] ./hdf5/tools/h5tools.h
* 2000-10-31 Robb Matzke <matzke@llnl.gov> Reindented.
This commit is contained in:
parent
3c2dfa4bab
commit
18e823ff42
@ -114,6 +114,7 @@ typedef struct h5dump_t {
|
|||||||
int ascii;
|
int ascii;
|
||||||
int str_locale;
|
int str_locale;
|
||||||
int str_repeat;
|
int str_repeat;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Fields associated with compound array members.
|
* Fields associated with compound array members.
|
||||||
*
|
*
|
||||||
@ -128,7 +129,7 @@ typedef struct h5dump_t {
|
|||||||
* value is a right square bracket `]'.
|
* value is a right square bracket `]'.
|
||||||
*
|
*
|
||||||
* linebreaks: a boolean value to determine if we want to break the line
|
* linebreaks: a boolean value to determine if we want to break the line
|
||||||
* after each row of an array
|
* after each row of an array.
|
||||||
*/
|
*/
|
||||||
const char *arr_pre;
|
const char *arr_pre;
|
||||||
const char *arr_sep;
|
const char *arr_sep;
|
||||||
@ -266,20 +267,25 @@ typedef struct h5dump_t {
|
|||||||
int line_multi_new; /*split multi-line outputs? */
|
int line_multi_new; /*split multi-line outputs? */
|
||||||
const char *line_indent; /*for extra identation if we need it*/
|
const char *line_indent; /*for extra identation if we need it*/
|
||||||
|
|
||||||
int skip_first; /*used to skip the first set of checks for line length*/
|
/*used to skip the first set of checks for line length*/
|
||||||
|
int skip_first;
|
||||||
|
|
||||||
int obj_hidefileno; /*flag used to hide or show the file number for obj refs*/
|
/*flag used to hide or show the file number for obj refs*/
|
||||||
const char *obj_format; /*string used to format the output for the obje refs*/
|
int obj_hidefileno;
|
||||||
|
|
||||||
int dset_hidefileno;/*flag used to hide or show the file number for dataset regions*/
|
/*string used to format the output for the obje refs*/
|
||||||
const char *dset_format; /*string used to format the output for the dataset regions*/
|
const char *obj_format;
|
||||||
|
|
||||||
|
/*flag used to hide or show the file number for dataset regions*/
|
||||||
|
int dset_hidefileno;
|
||||||
|
|
||||||
|
/*string used to format the output for the dataset regions*/
|
||||||
|
const char *dset_format;
|
||||||
|
|
||||||
const char *dset_blockformat_pre;
|
const char *dset_blockformat_pre;
|
||||||
const char *dset_ptformat_pre;
|
const char *dset_ptformat_pre;
|
||||||
const char *dset_ptformat;
|
const char *dset_ptformat;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} h5dump_t;
|
} h5dump_t;
|
||||||
|
|
||||||
|
|
||||||
@ -335,7 +341,8 @@ typedef struct dump_header{
|
|||||||
} dump_header;
|
} dump_header;
|
||||||
|
|
||||||
hid_t h5dump_fixtype(hid_t f_type);
|
hid_t h5dump_fixtype(hid_t f_type);
|
||||||
int h5dump_dset(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_typ,int indentlevel);
|
int h5dump_dset(FILE *stream, const h5dump_t *info, hid_t dset, hid_t p_typ,
|
||||||
|
int indentlevel);
|
||||||
int h5dump_mem(FILE *stream, const h5dump_t *info, hid_t type, hid_t space,
|
int h5dump_mem(FILE *stream, const h5dump_t *info, hid_t type, hid_t space,
|
||||||
void *mem, int indentlevel);
|
void *mem, int indentlevel);
|
||||||
hid_t h5dump_fopen(const char *fname, char *drivername, size_t drivername_len);
|
hid_t h5dump_fopen(const char *fname, char *drivername, size_t drivername_len);
|
||||||
@ -361,7 +368,6 @@ int objflag;
|
|||||||
|
|
||||||
|
|
||||||
/*struct for the tables that the find_objs function uses*/
|
/*struct for the tables that the find_objs function uses*/
|
||||||
|
|
||||||
typedef struct table_t {
|
typedef struct table_t {
|
||||||
int size;
|
int size;
|
||||||
int nobjs;
|
int nobjs;
|
||||||
@ -386,15 +392,11 @@ int search_obj (table_t *temp, unsigned long *);
|
|||||||
void init_table(table_t **temp);
|
void init_table(table_t **temp);
|
||||||
void init_prefix(char **temp, int);
|
void init_prefix(char **temp, int);
|
||||||
|
|
||||||
/*
|
/* taken from h5dump.h */
|
||||||
taken from h5dump.h
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define ATTRIBUTE_DATA 0
|
#define ATTRIBUTE_DATA 0
|
||||||
#define DATASET_DATA 1
|
#define DATASET_DATA 1
|
||||||
#define ENUM_DATA 2
|
#define ENUM_DATA 2
|
||||||
|
|
||||||
|
|
||||||
#define COL 3
|
#define COL 3
|
||||||
extern int indent;
|
extern int indent;
|
||||||
extern void indentation(int);
|
extern void indentation(int);
|
||||||
@ -432,7 +434,6 @@ extern FILE *rawdatastream; /* output stream for raw data */
|
|||||||
#define END "}"
|
#define END "}"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Definitions of useful routines */
|
/* Definitions of useful routines */
|
||||||
void print_version(const char *program_name);
|
void print_version(const char *program_name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user