|
FiberBundleHDF5
FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
|
#include "F5F.h"Go to the source code of this file.
Functions | |
| F5_API int | F5Cset (F5Path *fpath, const char *fieldname, const char *content_type) |
| F5_API int | F5Cget_fields (F5Path *fpath, size_t *count, char ***names) |
| F5_API int | F5Cget_content_types (F5Path *fpath, const char *fieldname, size_t *count, char ***content_types) |
| F5_API int | F5Cget_version (const char *content_type, int *major, int *minor, int *patch, const char **remainder) |
| F5_API int | F5Cget_subspec (const char *content_type, char *str, size_t size, int *major, int *minor, int *patch, const char **remainder) |
| F5_API int | F5Cparse_version_string (const char *version_string, char *str, size_t size, int *major, int *minor, int *patch, const char **remainder) |
| F5_API int F5Cget_content_types | ( | F5Path * | fpath, |
| const char * | fieldname, | ||
| size_t * | count, | ||
| char *** | content_types ) |
Get the constraints on a field.
You have to call free(constraints) if you don't longer need them.
| fpath must at least contain a grid |
Definition at line 179 of file F5contenttype.c.
References F5Gappend(), FIBER_FIELDS_TAG, free(), F5Path::Grid_hid, H5Gclose, H5Tclose(), and ok.
Get the number and the names of the fields defined in this grid (including the positions field).
You have to call free(names) if you don't longer need them.
| fpath must at least contain a grid |
Definition at line 107 of file F5contenttype.c.
References F5Gappend(), FIBER_FIELDS_TAG, free(), F5Path::Grid_hid, H5Gclose, and ok.
| F5_API int F5Cget_subspec | ( | const char * | content_type, |
| char * | str, | ||
| size_t | size, | ||
| int * | major, | ||
| int * | minor, | ||
| int * | patch, | ||
| const char ** | remainder ) |
Do some string parsing to get the version and name of the sub spec.
e.g. http://www.zib.de/visual/F5-1.0.3/Regular-1.2.0/...
--> str = "Regular", major = 1, minor = 2, patch = 0, remainder = "..."
Definition at line 376 of file F5contenttype.c.
References F5Cget_version(), and F5Cparse_version_string().
| F5_API int F5Cget_version | ( | const char * | content_type, |
| int * | major, | ||
| int * | minor, | ||
| int * | patch, | ||
| const char ** | remainder ) |
Do some string parsing to get the version of the F5 format.
e.g. http://www.zib.de/visual/F5-1.0.3/Regular-1.0.0/...
--> major = 1, minor = 0, patch = 3, remainder = "Regular-1.0.0/..."
Definition at line 350 of file F5contenttype.c.
References F5Cparse_version_string().
Referenced by F5Cget_subspec().
| F5_API int F5Cparse_version_string | ( | const char * | version_string, |
| char * | str, | ||
| size_t | size, | ||
| int * | major, | ||
| int * | minor, | ||
| int * | patch, | ||
| const char ** | remainder ) |
parse a string into name and version information.
"F5-1/..." "F5-1.0/..." "F5-1.0.0/..." "F5-1" "F5-1.0" "F5-1.0.0"
are all valid and the same
all args are untouched in case of error
| version_string | input |
| str | buffer to store name |
| size | size of buffer |
| major | |
| minor | |
| patch | |
| remainder | points to next part of version_string after '/' |
Definition at line 274 of file F5contenttype.c.
Referenced by F5Cget_subspec(), and F5Cget_version().
Set a constraint for a field in the path.
| fpath must at least contain a grid |
Definition at line 16 of file F5contenttype.c.
References F5Gappend(), FIBER_CONTENT_TYPE_MAXTAGLEN, FIBER_CONTENT_TYPE_TAG, FIBER_FIELDS_TAG, F5Path::Grid_hid, H5Gclose, H5Tclose(), and ok.
Referenced by F5Fwrite_uniform_cartesian3D(), F5Rcreate_rectilinear_cartesian3D(), F5Rcreate_uniform_cartesian3D(), and F5Rcreate_uniform_cartesian3Dbbox().