#include "hdf5.h"
#include "h5tools_error.h"
#include "h5tools_str.h"
Data Structures | |
struct | h5tools_dump_header_t |
struct | h5tool_format_t |
struct | subset_d |
struct | subset_t |
struct | h5tools_context_t |
struct | h5tools_vol_info_t |
struct | h5tools_vfd_info_t |
Macros | |
#define | ESCAPE_HTML 1 |
#define | OPT(X, S) ((X) ? (X) : (S)) |
#define | OPTIONAL_LINE_BREAK "\001" /* Special strings embedded in the output */ |
#define | START_OF_DATA 0x0001 |
#define | END_OF_DATA 0x0002 |
#define | H5TOOLS_DUMP_MAX_RANK H5S_MAX_RANK |
#define | FLUSHSTREAM(S) |
#define | PRINTSTREAM(S, F, ...) |
#define | PRINTVALSTREAM(S, V) |
#define | PUTSTREAM(X, S) |
#define | ATTRIBUTE "ATTRIBUTE" |
#define | BLOCK "BLOCK" |
#define | SUPER_BLOCK "SUPER_BLOCK" |
#define | COMPRESSION "COMPRESSION" |
#define | CONCATENATOR "//" |
#define | COMPLEX "COMPLEX" |
#define | COUNT "COUNT" |
#define | CSET "CSET" |
#define | CTYPE "CTYPE" |
#define | DATA "DATA" |
#define | DATASPACE "DATASPACE" |
#define | EXTERNAL "EXTERNAL" |
#define | FILENO "FILENO" |
#define | HARDLINK "HARDLINK" |
#define | NLINK "NLINK" |
#define | OBJID "OBJECTID" |
#define | OBJNO "OBJNO" |
#define | S_SCALAR "SCALAR" |
#define | S_SIMPLE "SIMPLE" |
#define | S_NULL "NULL" |
#define | SOFTLINK "SOFTLINK" |
#define | EXTLINK "EXTERNAL_LINK" |
#define | UDLINK "USERDEFINED_LINK" |
#define | START "START" |
#define | STRIDE "STRIDE" |
#define | STRSIZE "STRSIZE" |
#define | STRPAD "STRPAD" |
#define | SUBSET "SUBSET" |
#define | FILTERS "FILTERS" |
#define | DEFLATE "COMPRESSION DEFLATE" |
#define | DEFLATE_LEVEL "LEVEL" |
#define | SHUFFLE "PREPROCESSING SHUFFLE" |
#define | FLETCHER32 "CHECKSUM FLETCHER32" |
#define | SZIP "COMPRESSION SZIP" |
#define | NBIT "COMPRESSION NBIT" |
#define | SCALEOFFSET "COMPRESSION SCALEOFFSET" |
#define | SCALEOFFSET_MINBIT "MIN BITS" |
#define | STORAGE_LAYOUT "STORAGE_LAYOUT" |
#define | CONTIGUOUS "CONTIGUOUS" |
#define | COMPACT "COMPACT" |
#define | CHUNKED "CHUNKED" |
#define | EXTERNAL_FILE "EXTERNAL_FILE" |
#define | FILLVALUE "FILLVALUE" |
#define | FILE_CONTENTS "FILE_CONTENTS" |
#define | PACKED_BITS "PACKED_BITS" |
#define | PACKED_OFFSET "OFFSET" |
#define | PACKED_LENGTH "LENGTH" |
#define | REGION "REGION" |
#define | VDS_VIRTUAL "VIRTUAL" |
#define | VDS_MAPPING "MAPPING" |
#define | VDS_SOURCE "SOURCE" |
#define | VDS_REG_HYPERSLAB "SELECTION REGULAR_HYPERSLAB" |
#define | VDS_IRR_HYPERSLAB "SELECTION IRREGULAR_HYPERSLAB" |
#define | VDS_POINT "POINT" |
#define | VDS_SRC_FILE "FILE" |
#define | VDS_SRC_DATASET "DATASET" |
#define | VDS_NONE "SELECTION NONE" |
#define | VDS_ALL "SELECTION ALL" |
#define | BEGIN "{" |
#define | END "}" |
#define | H5_TOOLS_GROUP "GROUP" |
#define | H5_TOOLS_DATASET "DATASET" |
#define | H5_TOOLS_DATATYPE "DATATYPE" |
#define | H5_TOOLS_ATTRIBUTE "ATTRIBUTE" |
#define | H5_TOOLS_MAP "MAP" |
#define | H5_TOOLS_UNKNOWN "UNKNOWN" |
Enumerations | |
enum | h5tools_vol_info_type_t { VOL_BY_NAME , VOL_BY_VALUE } |
enum | h5tools_vfd_info_type_t { VFD_BY_NAME , VFD_BY_VALUE } |
enum | vol_idx { NATIVE_VOL_IDX = 0 , PASS_THROUGH_VOL_IDX } |
enum | driver_idx { SEC2_VFD_IDX = 0 , DIRECT_VFD_IDX , LOG_VFD_IDX , WINDOWS_VFD_IDX , STDIO_VFD_IDX , CORE_VFD_IDX , FAMILY_VFD_IDX , SPLIT_VFD_IDX , MULTI_VFD_IDX , MPIO_VFD_IDX , MIRROR_VFD_IDX , SPLITTER_VFD_IDX , ROS3_VFD_IDX , HDFS_VFD_IDX , SUBFILING_VFD_IDX , ONION_VFD_IDX } |
Functions | |
H5TOOLS_DLL void | h5tools_init (void) |
H5TOOLS_DLL void | h5tools_close (void) |
H5TOOLS_DLL void | h5tools_error_report (void) |
H5TOOLS_DLL int | h5tools_set_data_output_file (const char *fname, int is_bin) |
H5TOOLS_DLL int | h5tools_set_attr_output_file (const char *fname, int is_bin) |
H5TOOLS_DLL int | h5tools_set_input_file (const char *fname, int is_bin) |
H5TOOLS_DLL int | h5tools_set_output_file (const char *fname, int is_bin) |
H5TOOLS_DLL int | h5tools_set_error_file (const char *fname, int is_bin) |
H5TOOLS_DLL hid_t | h5tools_get_new_fapl (hid_t prev_fapl_id) |
H5TOOLS_DLL herr_t | h5tools_get_vfd_name (hid_t fid, hid_t fapl_id, char *drivername, size_t drivername_size) |
H5TOOLS_DLL herr_t | h5tools_set_fapl_vfd (hid_t fapl_id, h5tools_vfd_info_t *vfd_info) |
H5TOOLS_DLL herr_t | h5tools_set_fapl_vol (hid_t fapl_id, h5tools_vol_info_t *vol_info) |
H5TOOLS_DLL hid_t | h5tools_fopen (const char *fname, unsigned flags, hid_t fapl, bool use_specific_driver, char *drivername, size_t drivername_size) |
H5TOOLS_DLL hid_t | h5tools_get_little_endian_type (hid_t type) |
H5TOOLS_DLL hid_t | h5tools_get_big_endian_type (hid_t type) |
H5TOOLS_DLL htri_t | h5tools_detect_vlen (hid_t tid) |
H5TOOLS_DLL htri_t | h5tools_detect_vlen_str (hid_t tid) |
H5TOOLS_DLL bool | h5tools_is_obj_same (hid_t loc_id1, const char *name1, hid_t loc_id2, const char *name2) |
H5TOOLS_DLL void | init_acc_pos (unsigned ndims, const hsize_t *dims, hsize_t *acc, hsize_t *pos, hsize_t *p_min_idx) |
H5TOOLS_DLL hsize_t | calc_acc_pos (unsigned ndims, hsize_t elemtno, const hsize_t *acc, hsize_t *pos) |
H5TOOLS_DLL bool | h5tools_is_zero (const void *_mem, size_t size) |
H5TOOLS_DLL int | h5tools_canreadf (const char *name, hid_t dcpl_id) |
H5TOOLS_DLL int | h5tools_can_encode (H5Z_filter_t filtn) |
H5TOOLS_DLL void | h5tools_simple_prefix (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hsize_t elmtno, int secnum) |
H5TOOLS_DLL void | h5tools_region_simple_prefix (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, hsize_t elmtno, hsize_t *ptdata, int secnum) |
H5TOOLS_DLL int | render_bin_output (FILE *stream, hid_t container, hid_t tid, void *_mem, hsize_t nelmts) |
H5TOOLS_DLL int | render_bin_output_region_data_blocks (hid_t region_id, FILE *stream, hid_t container, unsigned ndims, hid_t type_id, hsize_t nblocks, const hsize_t *ptdata) |
H5TOOLS_DLL bool | render_bin_output_region_blocks (hid_t region_space, hid_t region_id, FILE *stream, hid_t container) |
H5TOOLS_DLL int | render_bin_output_region_data_points (hid_t region_space, hid_t region_id, FILE *stream, hid_t container, unsigned ndims, hid_t type_id, hsize_t npoints) |
H5TOOLS_DLL bool | render_bin_output_region_points (hid_t region_space, hid_t region_id, FILE *stream, hid_t container) |
H5TOOLS_DLL bool | h5tools_render_element (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, h5tools_str_t *buffer, hsize_t *curr_pos, size_t ncols, hsize_t local_elmt_counter, hsize_t elmt_counter) |
H5TOOLS_DLL bool | h5tools_render_region_element (FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx, h5tools_str_t *buffer, hsize_t *curr_pos, size_t ncols, hsize_t *ptdata, hsize_t local_elmt_counter, hsize_t elmt_counter) |
Variables | |
H5TOOLS_DLLVAR const char * | volnames [] |
H5TOOLS_DLLVAR const char * | drivernames [] |
H5TOOLS_DLLVAR h5tool_format_t | h5tools_dataformat |
H5TOOLS_DLLVAR const h5tools_dump_header_t | h5tools_standardformat |
H5TOOLS_DLLVAR const h5tools_dump_header_t * | h5tools_dump_header_format |
H5TOOLS_DLLVAR H5E_auto2_t | lib_func |
H5TOOLS_DLLVAR H5E_auto2_t | tools_func |
H5TOOLS_DLLVAR void * | lib_edata |
H5TOOLS_DLLVAR void * | tools_edata |
H5TOOLS_DLLVAR unsigned | packed_bits_num |
H5TOOLS_DLLVAR unsigned | packed_data_offset |
H5TOOLS_DLLVAR unsigned | packed_data_length |
H5TOOLS_DLLVAR unsigned long long | packed_data_mask |
H5TOOLS_DLLVAR FILE * | rawattrstream |
H5TOOLS_DLLVAR FILE * | rawdatastream |
H5TOOLS_DLLVAR FILE * | rawinstream |
H5TOOLS_DLLVAR FILE * | rawoutstream |
H5TOOLS_DLLVAR FILE * | rawerrorstream |
H5TOOLS_DLLVAR int | bin_output |
H5TOOLS_DLLVAR int | bin_form |
H5TOOLS_DLLVAR int | region_output |
H5TOOLS_DLLVAR int | oid_output |
H5TOOLS_DLLVAR int | data_output |
H5TOOLS_DLLVAR int | attr_data_output |
H5TOOLS_DLLVAR H5_index_t | sort_by |
H5TOOLS_DLLVAR H5_iter_order_t | sort_order |
H5TOOLS_DLLVAR int | enable_error_stack |
#define ATTRIBUTE "ATTRIBUTE" |
#define BEGIN "{" |
#define BLOCK "BLOCK" |
#define CHUNKED "CHUNKED" |
#define COMPACT "COMPACT" |
#define COMPLEX "COMPLEX" |
#define COMPRESSION "COMPRESSION" |
#define CONCATENATOR "//" |
#define CONTIGUOUS "CONTIGUOUS" |
#define COUNT "COUNT" |
#define CSET "CSET" |
#define CTYPE "CTYPE" |
#define DATA "DATA" |
#define DATASPACE "DATASPACE" |
#define DEFLATE "COMPRESSION DEFLATE" |
#define DEFLATE_LEVEL "LEVEL" |
#define END "}" |
#define END_OF_DATA 0x0002 |
#define ESCAPE_HTML 1 |
#define EXTERNAL "EXTERNAL" |
#define EXTERNAL_FILE "EXTERNAL_FILE" |
#define EXTLINK "EXTERNAL_LINK" |
#define FILE_CONTENTS "FILE_CONTENTS" |
#define FILENO "FILENO" |
#define FILLVALUE "FILLVALUE" |
#define FILTERS "FILTERS" |
#define FLETCHER32 "CHECKSUM FLETCHER32" |
#define FLUSHSTREAM | ( | S | ) |
#define H5_TOOLS_ATTRIBUTE "ATTRIBUTE" |
#define H5_TOOLS_DATASET "DATASET" |
#define H5_TOOLS_DATATYPE "DATATYPE" |
#define H5_TOOLS_GROUP "GROUP" |
#define H5_TOOLS_MAP "MAP" |
#define H5_TOOLS_UNKNOWN "UNKNOWN" |
#define H5TOOLS_DUMP_MAX_RANK H5S_MAX_RANK |
#define HARDLINK "HARDLINK" |
#define NBIT "COMPRESSION NBIT" |
#define NLINK "NLINK" |
#define OBJID "OBJECTID" |
#define OBJNO "OBJNO" |
#define OPT | ( | X, | |
S | |||
) | ((X) ? (X) : (S)) |
#define OPTIONAL_LINE_BREAK "\001" /* Special strings embedded in the output */ |
#define PACKED_BITS "PACKED_BITS" |
#define PACKED_LENGTH "LENGTH" |
#define PACKED_OFFSET "OFFSET" |
#define PRINTSTREAM | ( | S, | |
F, | |||
... | |||
) |
#define PRINTVALSTREAM | ( | S, | |
V | |||
) |
#define PUTSTREAM | ( | X, | |
S | |||
) |
#define REGION "REGION" |
#define S_NULL "NULL" |
#define S_SCALAR "SCALAR" |
#define S_SIMPLE "SIMPLE" |
#define SCALEOFFSET "COMPRESSION SCALEOFFSET" |
#define SCALEOFFSET_MINBIT "MIN BITS" |
#define SHUFFLE "PREPROCESSING SHUFFLE" |
#define SOFTLINK "SOFTLINK" |
#define START "START" |
#define START_OF_DATA 0x0001 |
#define STORAGE_LAYOUT "STORAGE_LAYOUT" |
#define STRIDE "STRIDE" |
#define STRPAD "STRPAD" |
#define STRSIZE "STRSIZE" |
#define SUBSET "SUBSET" |
#define SUPER_BLOCK "SUPER_BLOCK" |
#define SZIP "COMPRESSION SZIP" |
#define UDLINK "USERDEFINED_LINK" |
#define VDS_ALL "SELECTION ALL" |
#define VDS_IRR_HYPERSLAB "SELECTION IRREGULAR_HYPERSLAB" |
#define VDS_MAPPING "MAPPING" |
#define VDS_NONE "SELECTION NONE" |
#define VDS_POINT "POINT" |
#define VDS_REG_HYPERSLAB "SELECTION REGULAR_HYPERSLAB" |
#define VDS_SOURCE "SOURCE" |
#define VDS_SRC_DATASET "DATASET" |
#define VDS_SRC_FILE "FILE" |
#define VDS_VIRTUAL "VIRTUAL" |
enum vol_idx |
H5TOOLS_DLL hsize_t calc_acc_pos | ( | unsigned | ndims, |
hsize_t | elemtno, | ||
const hsize_t * | acc, | ||
hsize_t * | pos | ||
) |
H5TOOLS_DLL int h5tools_can_encode | ( | H5Z_filter_t | filtn | ) |
H5TOOLS_DLL int h5tools_canreadf | ( | const char * | name, |
hid_t | dcpl_id | ||
) |
H5TOOLS_DLL void h5tools_close | ( | void | ) |
H5TOOLS_DLL void h5tools_error_report | ( | void | ) |
H5TOOLS_DLL hid_t h5tools_fopen | ( | const char * | fname, |
unsigned | flags, | ||
hid_t | fapl, | ||
bool | use_specific_driver, | ||
char * | drivername, | ||
size_t | drivername_size | ||
) |
H5TOOLS_DLL herr_t h5tools_get_vfd_name | ( | hid_t | fid, |
hid_t | fapl_id, | ||
char * | drivername, | ||
size_t | drivername_size | ||
) |
H5TOOLS_DLL void h5tools_init | ( | void | ) |
H5TOOLS_DLL bool h5tools_is_obj_same | ( | hid_t | loc_id1, |
const char * | name1, | ||
hid_t | loc_id2, | ||
const char * | name2 | ||
) |
H5TOOLS_DLL bool h5tools_is_zero | ( | const void * | _mem, |
size_t | size | ||
) |
H5TOOLS_DLL void h5tools_region_simple_prefix | ( | FILE * | stream, |
const h5tool_format_t * | info, | ||
h5tools_context_t * | ctx, | ||
hsize_t | elmtno, | ||
hsize_t * | ptdata, | ||
int | secnum | ||
) |
H5TOOLS_DLL bool h5tools_render_element | ( | FILE * | stream, |
const h5tool_format_t * | info, | ||
h5tools_context_t * | ctx, | ||
h5tools_str_t * | buffer, | ||
hsize_t * | curr_pos, | ||
size_t | ncols, | ||
hsize_t | local_elmt_counter, | ||
hsize_t | elmt_counter | ||
) |
H5TOOLS_DLL bool h5tools_render_region_element | ( | FILE * | stream, |
const h5tool_format_t * | info, | ||
h5tools_context_t * | ctx, | ||
h5tools_str_t * | buffer, | ||
hsize_t * | curr_pos, | ||
size_t | ncols, | ||
hsize_t * | ptdata, | ||
hsize_t | local_elmt_counter, | ||
hsize_t | elmt_counter | ||
) |
H5TOOLS_DLL int h5tools_set_attr_output_file | ( | const char * | fname, |
int | is_bin | ||
) |
H5TOOLS_DLL int h5tools_set_data_output_file | ( | const char * | fname, |
int | is_bin | ||
) |
H5TOOLS_DLL int h5tools_set_error_file | ( | const char * | fname, |
int | is_bin | ||
) |
H5TOOLS_DLL herr_t h5tools_set_fapl_vfd | ( | hid_t | fapl_id, |
h5tools_vfd_info_t * | vfd_info | ||
) |
H5TOOLS_DLL herr_t h5tools_set_fapl_vol | ( | hid_t | fapl_id, |
h5tools_vol_info_t * | vol_info | ||
) |
H5TOOLS_DLL int h5tools_set_input_file | ( | const char * | fname, |
int | is_bin | ||
) |
H5TOOLS_DLL int h5tools_set_output_file | ( | const char * | fname, |
int | is_bin | ||
) |
H5TOOLS_DLL void h5tools_simple_prefix | ( | FILE * | stream, |
const h5tool_format_t * | info, | ||
h5tools_context_t * | ctx, | ||
hsize_t | elmtno, | ||
int | secnum | ||
) |
H5TOOLS_DLL void init_acc_pos | ( | unsigned | ndims, |
const hsize_t * | dims, | ||
hsize_t * | acc, | ||
hsize_t * | pos, | ||
hsize_t * | p_min_idx | ||
) |
H5TOOLS_DLL int render_bin_output | ( | FILE * | stream, |
hid_t | container, | ||
hid_t | tid, | ||
void * | _mem, | ||
hsize_t | nelmts | ||
) |
H5TOOLS_DLL bool render_bin_output_region_blocks | ( | hid_t | region_space, |
hid_t | region_id, | ||
FILE * | stream, | ||
hid_t | container | ||
) |
H5TOOLS_DLL int render_bin_output_region_data_blocks | ( | hid_t | region_id, |
FILE * | stream, | ||
hid_t | container, | ||
unsigned | ndims, | ||
hid_t | type_id, | ||
hsize_t | nblocks, | ||
const hsize_t * | ptdata | ||
) |
H5TOOLS_DLL int render_bin_output_region_data_points | ( | hid_t | region_space, |
hid_t | region_id, | ||
FILE * | stream, | ||
hid_t | container, | ||
unsigned | ndims, | ||
hid_t | type_id, | ||
hsize_t | npoints | ||
) |
H5TOOLS_DLL bool render_bin_output_region_points | ( | hid_t | region_space, |
hid_t | region_id, | ||
FILE * | stream, | ||
hid_t | container | ||
) |
H5TOOLS_DLLVAR int attr_data_output |
H5TOOLS_DLLVAR int bin_form |
H5TOOLS_DLLVAR int bin_output |
H5TOOLS_DLLVAR int data_output |
H5TOOLS_DLLVAR const char* drivernames[] |
H5TOOLS_DLLVAR int enable_error_stack |
H5TOOLS_DLLVAR h5tool_format_t h5tools_dataformat |
H5TOOLS_DLLVAR const h5tools_dump_header_t* h5tools_dump_header_format |
H5TOOLS_DLLVAR const h5tools_dump_header_t h5tools_standardformat |
H5TOOLS_DLLVAR void* lib_edata |
H5TOOLS_DLLVAR H5E_auto2_t lib_func |
H5TOOLS_DLLVAR int oid_output |
H5TOOLS_DLLVAR unsigned packed_bits_num |
H5TOOLS_DLLVAR unsigned packed_data_length |
H5TOOLS_DLLVAR unsigned long long packed_data_mask |
H5TOOLS_DLLVAR unsigned packed_data_offset |
H5TOOLS_DLLVAR FILE* rawattrstream |
H5TOOLS_DLLVAR FILE* rawdatastream |
H5TOOLS_DLLVAR FILE* rawerrorstream |
H5TOOLS_DLLVAR FILE* rawinstream |
H5TOOLS_DLLVAR FILE* rawoutstream |
H5TOOLS_DLLVAR int region_output |
H5TOOLS_DLLVAR H5_index_t sort_by |
H5TOOLS_DLLVAR H5_iter_order_t sort_order |
H5TOOLS_DLLVAR void* tools_edata |
H5TOOLS_DLLVAR H5E_auto2_t tools_func |
H5TOOLS_DLLVAR const char* volnames[] |