FiberBundleHDF5  FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
Loading...
Searching...
No Matches
F5private.h
Go to the documentation of this file.
1/*
2 $Id: F5private.h,v 1.17 2008/02/15 20:09:45 werner Exp $
3*/
4
5#ifndef __F5private_H
6#define __F5private_H
7
8#include "hdf5inc.h"
9#include "F5F.h"
10
11#if _MSC_VER
12#define __PRETTY_FUNCTION__ __FUNCTION__
13#endif
14
15#ifdef __cplusplus
16extern "C"
17{
18#endif
19
20/**\defgroup Internal Private F5 functions.
21 Internal functions that are not intended to be used by
22 application code.
23 */
24
25hid_t F5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t create_plist );
26
27void F5T_save_perm_vector(hid_t location, int rank, int perm_vector[]);
28
29hid_t F5I_create_contents(hid_t File_id);
30
31/*
32 An error-silent version of H5Glink() with F5 verbosity information.
33 */
34herr_t F5Glink(hid_t loc_id, H5G_link_t link_type, const char *current_name, const char *new_name);
35
36herr_t F5Glink_soft_to_id(hid_t loc_id, hid_t existing_id, const char*linkname);
37
38/*char*F5I_timegroup(const double*time, char*destbuf, size_t len);*/
39
40/* Saves information per grid, at which time steps does this grid exist?
41 Uses only ContentsGroup_hid from the F5Path structure.
42 */
43void F5I_add_grid(F5Path*fpath, const char*gridname, const double*time);
44
45/* Given some path, add save information per field (on which grids does this field reside?)
46 Uses ContentsGroup_hid and Grid_hid from the F5Path structure.
47 @param gridname optional explicit name of the grid, if NULL, then the
48 name is retrieved from the Grid_hid within the fpath.
49 */
50void F5I_add_field(F5Path*fpath, const char*fieldname);
51
52extern int F5printf_indent;
53F5_API void F5printf(int verbosity, const char *fmt,...);
54
55F5_API void F5printx(int verbosity, const char*sourcefilename, int lineNo, const char*FunctionName, const char *fmt,...);
56
57/**
58 http://gcc.gnu.org/onlinedocs/cpp/Variadic-Macros.html
59 */
60#define F5printf(verbosity, ...) F5printx(verbosity, __FILE__, __LINE__, __PRETTY_FUNCTION__, __VA_ARGS__)
61
62
63F5_API void F5print_dimensions(int verbosity, const char*prefix, int rank, const hsize_t dims[]);
64
65
66
67F5_API herr_t F_H5Aread(hid_t attr_id, hid_t mem_type_id, void *buf, const char*name );
68
69F5_API herr_t F5Aread2( hid_t attr_id, hid_t mem_type_id, void *buf, const char*name );
70
71#define F5check(HDF5call) {herr_t err = HDF5call; if (err<0) \
72 F5printf(1, "** %s returned error in %s:%d\n",\
73 #HDF5call, __FILE__, __LINE__ ); }
74
75#if 0
76#ifndef H5_USE_16_API
77/* don't override if hdf5 (1.8.0 e.g.) uses backwards compat layer */
78 #ifndef NDEBUG
79 #define H5Acreate(loc,name,type,space,plist) ( F5printf(50,"H5Acreate(%s)", name), \
80 H5Acreate(loc, name, type, space, plist) )
81 #define H5Gcreate(loc,name,hint) (F5printf(50,"H5Gcreate(%s)", name), \
82 H5Gcreate(loc, name, hint) )
83 #endif
84#endif
85#endif
86
87
88#define CASEITEM(x, i, refs, name) \
89case x:\
90 printf( " [%ld] %s, open references: %d:\t %s\n", i, #x, refs, name ); \
91 break; \
92
93 F5_API void F5print_OpenHandles( hid_t file_id );
94
95
96#ifdef __cplusplus
97} /* extern "C" */
98#endif
99
100#endif /* __F5private_H */
name
Definition F5P.c:82
#define F5_API
Definition F5WinDLLApi.h:11
int F5printf_indent
Definition F5private.c:349
void F5T_save_perm_vector(hid_t location, int rank, int perm_vector[])
Definition F5Bchart.c:879
void F5I_add_field(F5Path *fpath, const char *fieldname)
Definition F5private.c:178
F5_API herr_t F_H5Aread(hid_t attr_id, hid_t mem_type_id, void *buf, const char *name)
Definition F5private.c:332
herr_t F5Glink(hid_t loc_id, H5G_link_t link_type, const char *current_name, const char *new_name)
Definition F5private.c:162
F5_API void F5print_dimensions(int verbosity, const char *prefix, int rank, const hsize_t dims[])
Definition F5private.c:394
hid_t F5Acreate(hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t create_plist)
Definition F5private.c:11
F5_API void F5printx(int verbosity, const char *sourcefilename, int lineNo, const char *FunctionName, const char *fmt,...)
Definition F5private.c:368
F5_API herr_t F5Aread2(hid_t attr_id, hid_t mem_type_id, void *buf, const char *name)
F5_API void F5print_OpenHandles(hid_t file_id)
Definition F5private.c:410
void F5I_add_grid(F5Path *fpath, const char *gridname, const double *time)
Definition F5private.c:230
herr_t F5Glink_soft_to_id(hid_t loc_id, hid_t existing_id, const char *linkname)
Definition F5private.c:148
#define F5printf(verbosity,...)
Definition F5private.h:60
hid_t F5I_create_contents(hid_t File_id)
Definition F5private.c:103