FiberBundleHDF5  FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
Loading...
Searching...
No Matches
F5T.h
Go to the documentation of this file.
1#ifndef __F5_F5T_H
2#define __F5_F5T_H
3
4#include "hdf5inc.h"
5#include "F5defs.h"
6#include "F5types.h"
7#include "F5Path.h"
8
9#include "F5WinDLLApi.h"
10
11#ifdef __cplusplus
12extern "C"
13{
14#endif
15
16
17#define FIBER_HDF5_CHART_ONEBYTE_PRECISION "OneBytePrecision"
18#define FIBER_HDF5_CHART_HALF_PRECISION "HalfPrecision"
19#define FIBER_HDF5_CHART_SINGLE_PRECISION "SinglePrecision"
20#define FIBER_HDF5_CHART_DOUBLE_PRECISION "DoublePrecision"
21#define FIBER_HDF5_CHART_EXTENDED_PRECISION "ExtendedPrecision"
22
23/**
24 Retrieve a string corresponding to the type size,
25 used for coordinate sub-precision.
26 */
27F5_API const char*F5Tget_precision_name(int TypeSize);
28
29F5_API hid_t F5Tsave_tensor(hid_t Domain_hid, const char*domain_name,
30 const char*type_name, hid_t transient_type, int rank, int indices[],
31 int grade);
32
33F5_API hid_t F5Tmake_precise_tensor(F5Path*fpath, const char*type_name, int TypeBytePrecision,
34 hid_t transient_type, int rank, int indices[], int grade);
35
36
37/** Save a type to a file and return a copy of the type ID.
38 \note The returned HDF5 id must be released via H5Tclose().
39 @param save_location Where to save the type, must be some group ID
40 @param name The name of the type
41 @param TransientTypeID The intrinsic type ID
42 @returns A type Id which is bound to the file to which save_location belongs
43 */
44F5_API hid_t F5Tcommit(hid_t save_location, const char*name, hid_t TransientTypeID);
45
46/** Open some type if it exists, otherwise create one. */
47F5_API hid_t F5Tappend(hid_t loc_id, const char *name, hid_t type_id);
48
49
50/**
51 Close a HDF5 Type ID if it's a valid identifier,
52 otherwise silently ignore.
53 */
54F5_API void F5Tclose(hid_t type_id);
55
56#ifdef __cplusplus
57} /* extern "C" */
58#endif
59
60#endif /* __F5_F5T_H */
name
Definition F5P.c:82
F5_API hid_t F5Tsave_tensor(hid_t Domain_hid, const char *domain_name, const char *type_name, hid_t transient_type, int rank, int indices[], int grade)
Definition F5T.c:74
F5_API const char * F5Tget_precision_name(int TypeSize)
Definition F5T.c:56
F5_API void F5Tclose(hid_t type_id)
Definition F5T.c:49
F5_API hid_t F5Tmake_precise_tensor(F5Path *fpath, const char *type_name, int TypeBytePrecision, hid_t transient_type, int rank, int indices[], int grade)
Definition F5T.c:115
F5_API hid_t F5Tcommit(hid_t save_location, const char *name, hid_t TransientTypeID)
Definition F5T.c:6
F5_API hid_t F5Tappend(hid_t loc_id, const char *name, hid_t type_id)
Definition F5T.c:25
#define F5_API
Definition F5WinDLLApi.h:11