MISR Toolkit  1.5.1
h5tools_dump.h
Go to the documentation of this file.
1 /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
2  * Copyright by The HDF Group. *
3  * Copyright by the Board of Trustees of the University of Illinois. *
4  * All rights reserved. *
5  * *
6  * This file is part of HDF5. The full HDF5 copyright notice, including *
7  * terms governing use, modification, and redistribution, is contained in *
8  * the COPYING file, which can be found at the root of the source code *
9  * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases. *
10  * If you do not have access to either file, you may request a copy from *
11  * help@hdfgroup.org. *
12  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
13 
14 /*
15  * Purpose: Support h5dump functions for the various tools.
16  */
17 #ifndef H5TOOLS_DUMP_H__
18 #define H5TOOLS_DUMP_H__
19 
20 #include "h5tools_utils.h"
21 
22 /* 3 private values: can't be set, but can be read.
23  Note: these are defined in H5Zprivate, they are
24  duplicated here.
25  */
26 #define H5_SZIP_LSB_OPTION_MASK 8
27 #define H5_SZIP_MSB_OPTION_MASK 16
28 #define H5_SZIP_RAW_OPTION_MASK 128
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 H5TOOLS_DLLVAR table_t *h5dump_type_table; /*type table reference for datatype dump */
35 
36 /* Definitions of useful routines */
38 
39 H5TOOLS_DLL int h5tools_dump_dset(FILE *stream, const h5tool_format_t *info,
40  h5tools_context_t *ctx/*in,out*/, hid_t dset,
41  struct subset_t *sset);
42 H5TOOLS_DLL int h5tools_dump_mem(FILE *stream, const h5tool_format_t *info,
43  h5tools_context_t *ctx/*in,out*/, hid_t obj_id,
44  hid_t type, hid_t space, void *mem);
45 H5TOOLS_DLL int h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, hid_t container,
46  h5tools_context_t *ctx/*in,out*/, unsigned flags,
47  hsize_t nelmts, hid_t type, void *_mem);
48 H5TOOLS_DLL void h5tools_dump_datatype(FILE *stream, const h5tool_format_t *info,
49  h5tools_context_t *ctx/*in,out*/, hid_t type);
50 H5TOOLS_DLL void h5tools_dump_dataspace(FILE *stream, const h5tool_format_t *info,
51  h5tools_context_t *ctx/*in,out*/, hid_t space);
52 H5TOOLS_DLL void h5tools_dump_attribute(FILE *stream, const h5tool_format_t *info,
53  h5tools_context_t *ctx/*in,out*/, const char *attr_name,
54  hid_t attr_id, int display_index, int display_char);
55 H5TOOLS_DLL void h5tools_dump_oid(FILE *stream, const h5tool_format_t *info,
56  h5tools_context_t *ctx/*in,out*/, hid_t oid);
57 H5TOOLS_DLL void h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info,
58  h5tools_context_t *ctx/*in,out*/, hid_t dcpl, hid_t type_id, hid_t obj_id);
59 H5TOOLS_DLL void h5tools_dump_comment(FILE *stream, const h5tool_format_t *info,
60  h5tools_context_t *ctx/*in,out*/, hid_t obj_id);
61 H5TOOLS_DLL void h5tools_dump_data(FILE *stream, const h5tool_format_t *info,
62  h5tools_context_t *ctx, hid_t obj_id,
63  int obj_data, struct subset_t *sset, int display_index, int display_char);
64 
65 H5TOOLS_DLL int h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer/*in,out*/,
66  const h5tool_format_t *info, h5tools_context_t *ctx/*in,out*/,
67  hid_t type, int object_search);
69  hid_t space);
70 H5TOOLS_DLL int h5tools_print_enum(FILE *stream, h5tools_str_t *buffer/*in,out*/,
71  const h5tool_format_t *info, h5tools_context_t *ctx/*in,out*/,
72  hid_t type);
74  const h5tool_format_t *info, h5tools_context_t *ctx/*in,out*/,
75  hid_t dcpl, hid_t type_id, hid_t obj_id);
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* H5TOOLS_DUMP_H__ */
82 
H5TOOLS_DLL int h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t type, int object_search)
H5TOOLS_DLL void h5tools_dump_oid(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t oid)
#define H5TOOLS_DLLVAR
Definition: H5api_adpt.h:261
HDFFCLIBAPI intf * info
H5TOOLS_DLL int h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info, hid_t container, h5tools_context_t *ctx, unsigned flags, hsize_t nelmts, hid_t type, void *_mem)
H5TOOLS_DLL void h5tools_dump_attribute(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, const char *attr_name, hid_t attr_id, int display_index, int display_char)
#define H5TOOLS_DLL
Definition: H5api_adpt.h:260
H5TOOLS_DLL int h5tools_print_enum(FILE *stream, h5tools_str_t *buffer, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t type)
H5TOOLS_DLL void h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t dcpl, hid_t type_id, hid_t obj_id)
unsigned long long hsize_t
Definition: H5public.h:169
H5TOOLS_DLL int h5tools_dump_dset(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t dset, struct subset_t *sset)
H5TOOLS_DLL void h5tools_dump_datatype(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t type)
HDFFCLIBAPI intf intf intf intf void * buffer
H5TOOLS_DLL int h5tools_print_dataspace(h5tools_str_t *buffer, hid_t space)
H5TOOLS_DLL void h5tools_print_fill_value(h5tools_str_t *buffer, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t dcpl, hid_t type_id, hid_t obj_id)
int hid_t
Definition: H5Ipublic.h:54
H5TOOLS_DLL void h5tools_dump_dataspace(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t space)
H5TOOLS_DLL void h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t obj_id, int obj_data, struct subset_t *sset, int display_index, int display_char)
H5TOOLS_DLL void h5tools_dump_init(void)
HDFFCLIBAPI intf intf intf * type
H5TOOLS_DLL int h5tools_dump_mem(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t obj_id, hid_t type, hid_t space, void *mem)
HDFFCLIBAPI intf intf * flags
H5TOOLS_DLL void h5tools_print_packed_bits(h5tools_str_t *buffer, hid_t type)
H5TOOLS_DLL void h5tools_dump_comment(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hid_t obj_id)
H5TOOLS_DLLVAR table_t * h5dump_type_table
Definition: h5tools_dump.h:34

MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53