mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-27 02:10:55 +08:00
fab95ce7b3
* OESS-98 convert plugin option to FetchContent, add tests * Fixes for pkcfg files because of plugin option * OESS-98 fix tools test for plugins * Keep doxygen comments under 100 chars long - format hint * Whitespace * HDFFV-11144 - Reclassify CMake messages * HDFFV-11099/11100 added help text * Reworked switch statement to compare string instead * Fix typo * Update CDash mode * Correct name of threadsafe * Correct option name * Undo accidental commit * Note LLVM 10 to 11 format default changes * Update format plugin * Undo clang-format version 11 changes * One more correction * Update supported platforms * Revert whitespace changes * Correct whitespace * Changes from PR#3 * HDFFV-11213 added option to control gcc10 warnings diagnostics * HDFFV-11212 Use the new references correctly in JNI utility and tests * format source * Fix typo * Add new test file * HDFFV-11212 - update test and remove unused arg * Minor non-space formatting changes * Use H5I_INVALID_ID instead of "-1" * source formatting * add missing testfile, update jni function * Undo commit of debug code * remove mislocated file * Fix h5repack test for handling of fapls and id close * Update h5diff test files usage text * HDFFV-11212 add new ref tests for JNI export dataset * src format update * Remove blank line typo * src format typo * long double requires %Lg * Another long double foramt specifer S.B. %Lg * issue with t128bit test * Windows issue with h5dump and type. * Fix review issues * refactor function nesting and fix error checks * format fixes * Remove untested functions and javadoc quiet comments * Restore TRY block. * Change string append errors to memory exception * revert to H5_JNI_FATAL_ERROR - support functions need work * Add assertion error for h5util functions * remove duplicate function * format fix * Revert HD function error handling * Update copyright comments * GH #386 java folder copyright corrections * Whitespace * GH #359 implement and fix tools 1.6 API usage * remove excessive comments * Flip inits to correct ifdef section * rework ifdef to be simpler * format issue * Reformat ifdef inits * remove static attribute * format compliance * Update names * Revert because logic relies on float not being int * Changes noticed from creating merge of #412 * Double underscore change * Correct compiler version variable used * Remove header guard underscores * Whitespace cleanup
98 lines
5.9 KiB
C
98 lines
5.9 KiB
C
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
|
* Copyright by The HDF Group. *
|
|
* Copyright by the Board of Trustees of the University of Illinois. *
|
|
* All rights reserved. *
|
|
* *
|
|
* This file is part of HDF5. The full HDF5 copyright notice, including *
|
|
* terms governing use, modification, and redistribution, is contained in *
|
|
* the COPYING file, which can be found at the root of the source code *
|
|
* distribution tree, or in https://www.hdfgroup.org/licenses. *
|
|
* If you do not have access to either file, you may request a copy from *
|
|
* help@hdfgroup.org. *
|
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
/*
|
|
* Purpose: Support h5dump functions for the various tools.
|
|
*/
|
|
#ifndef H5TOOLS_DUMP_H
|
|
#define H5TOOLS_DUMP_H
|
|
|
|
#include "h5tools_utils.h"
|
|
|
|
/* 3 private values: can't be set, but can be read.
|
|
Note: these are defined in H5Zprivate, they are
|
|
duplicated here.
|
|
*/
|
|
#define H5_SZIP_LSB_OPTION_MASK 8
|
|
#define H5_SZIP_MSB_OPTION_MASK 16
|
|
#define H5_SZIP_RAW_OPTION_MASK 128
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
H5TOOLS_DLLVAR table_t *h5dump_type_table; /*type table reference for datatype dump */
|
|
|
|
/* Definitions of useful routines */
|
|
H5TOOLS_DLL void h5tools_dump_init(void);
|
|
|
|
H5TOOLS_DLL int h5tools_dump_dset(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t dset);
|
|
H5TOOLS_DLL int h5tools_dump_mem(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx /*in,out*/,
|
|
hid_t obj_id);
|
|
H5TOOLS_DLL int h5tools_dump_simple_data(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t container, unsigned flags,
|
|
hsize_t nelmts, hid_t type, void *_mem);
|
|
H5TOOLS_DLL void h5tools_dump_datatype(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t type);
|
|
H5TOOLS_DLL void h5tools_dump_dataspace(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t space);
|
|
H5TOOLS_DLL void h5tools_dump_attribute(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, const char *attr_name,
|
|
hid_t attr_id);
|
|
H5TOOLS_DLL void h5tools_dump_oid(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t oid);
|
|
H5TOOLS_DLL void h5tools_dump_dcpl(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t dcpl, hid_t type_id,
|
|
hid_t obj_id);
|
|
H5TOOLS_DLL void h5tools_dump_comment(FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t obj_id);
|
|
H5TOOLS_DLL void h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx,
|
|
hid_t obj_id, int obj_data);
|
|
H5TOOLS_DLL void h5tools_dump_reference(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx,
|
|
hid_t container, H5R_ref_t *ref_buf, int ndims);
|
|
H5TOOLS_DLL hbool_t h5tools_dump_region_attribute(hid_t region_id, FILE *stream, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, h5tools_str_t *buffer,
|
|
hsize_t *curr_pos, size_t ncols,
|
|
hsize_t region_elmt_counter, hsize_t elmt_counter);
|
|
|
|
H5TOOLS_DLL hbool_t h5tools_dump_region_data_points(hid_t region_space, hid_t region_id, FILE *stream,
|
|
const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, h5tools_str_t *buffer,
|
|
hsize_t *curr_pos, size_t ncols,
|
|
hsize_t region_elmt_counter, hsize_t elmt_counter);
|
|
|
|
H5TOOLS_DLL hbool_t h5tools_dump_region_data_blocks(hid_t region_space, hid_t region_id, FILE *stream,
|
|
const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, h5tools_str_t *buffer,
|
|
hsize_t *curr_pos, size_t ncols,
|
|
hsize_t region_elmt_counter, hsize_t elmt_counter);
|
|
|
|
H5TOOLS_DLL int h5tools_print_datatype(FILE *stream, h5tools_str_t *buffer /*in,out*/,
|
|
const h5tool_format_t *info, h5tools_context_t *ctx /*in,out*/,
|
|
hid_t type, int object_search);
|
|
H5TOOLS_DLL int h5tools_print_dataspace(h5tools_str_t *buffer /*in,out*/, hid_t space);
|
|
H5TOOLS_DLL int h5tools_print_enum(FILE *stream, h5tools_str_t *buffer /*in,out*/,
|
|
const h5tool_format_t *info, h5tools_context_t *ctx /*in,out*/,
|
|
hid_t type);
|
|
H5TOOLS_DLL void h5tools_print_fill_value(h5tools_str_t *buffer /*in,out*/, const h5tool_format_t *info,
|
|
h5tools_context_t *ctx /*in,out*/, hid_t dcpl, hid_t type_id,
|
|
hid_t obj_id);
|
|
H5TOOLS_DLL void h5tools_print_packed_bits(h5tools_str_t *buffer /*in,out*/, hid_t type);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* H5TOOLS_DUMP_H */
|