|
FiberBundleHDF5
FiberHDF5 Documentation, Revision 2026
High-Performance Fiber Bundle Data Model for Scientific Visualization
|
Go to the source code of this file.
Macros | |
| #define | __F5_F5A_H "Attribute Functions" |
Functions | |
| F5_API hid_t | F5Aappend (hid_t loc_id, const char *name, hid_t type_id, hid_t space_id, hid_t create_plist) |
| F5_API hid_t | F5Atry_to_open (hid_t location, const char *name) |
| F5_API hid_t | F5Aopen_name (hid_t location, const char *name) |
| F5_API int | F5Asave_string (hid_t loc_id, const char *name, const char *buf) |
| F5_API int | F5Asave_strings (hid_t loc_id, const char *name, const char *buf, int HowMany) |
| F5_API char * | F5Aget_string (hid_t loc_id, const char *name, char *buf, size_t len) |
| F5_API hid_t | F5Aget_type (hid_t loc_id, const char *name, hid_t *attrib) |
| F5_API herr_t | F5Asave_version (hid_t loc_id, int major, int minor, int release) |
| F5_API herr_t | F5Aget_version (hid_t loc_id, int *major, int *minor, int *release) |
| F5_API long | F5Aget_ints (hid_t loc_id, const char *name, int *data, hsize_t n) |
| F5_API int | F5Asave_ints (hid_t loc_id, const char *name, const int data[], hsize_t n) |
| F5_API int | F5Astore_integer (hid_t loc_id, const char *name, int data) |
| F5_API int | F5Awrite_integer (hid_t loc_id, const char *name, int data) |
| F5_API int | F5Asave (hid_t loc_id, const char *name, hid_t file_type_id, hid_t mem_type_id, const void *data, hsize_t n) |
| F5_API hid_t F5Aappend | ( | hid_t | loc_id, |
| const char * | name, | ||
| hid_t | type_id, | ||
| hid_t | space_id, | ||
| hid_t | create_plist ) |
Open some attribute if it exists, otherwise create one.
Definition at line 9 of file F5A.c.
References F5Aopen_name(), and name.
Referenced by F5Bappend_slice().
| F5_API long F5Aget_ints | ( | hid_t | loc_id, |
| const char * | name, | ||
| int * | data, | ||
| hsize_t | n ) |
Get a number of integers from an attribute which is an integer array. The specified number n must match exactly with the number of elements.
Definition at line 406 of file F5A.c.
References F5Atry_to_open(), F_H5Aread(), and name.
Referenced by F5Asave_ints(), F5LTexpand_dataspace(), F5LTget_index_depth(), F5LTget_skeleton_dimensionality(), F5LTset_dataspace(), and F5Tget_index_depth().
| F5_API char * F5Aget_string | ( | hid_t | loc_id, |
| const char * | name, | ||
| char * | buf, | ||
| size_t | len ) |
Get a string attribute from the file. If buf is a NULL pointer, then the string is allocated dynamically and the caller needs to issue free() on the result. If the string could not be read, returns a NULL pointer.
Definition at line 109 of file F5A.c.
References F5Atry_to_open(), F5printf, F_H5Aread(), H5Tclose(), and name.
Referenced by F5B_read_chart_domain().
| F5_API hid_t F5Aget_type | ( | hid_t | loc_id, |
| const char * | name, | ||
| hid_t * | attrib ) |
Get type of an attribute by name. After calling this function both, attribute and type must be closed, otherwise warnings will occur
Definition at line 167 of file F5A.c.
References F5_API, F5Aopen_name(), F5printf, and name.
Referenced by F5Fis_attribute_of_type(), and F5Fis_fragment_attribute_of_type().
| F5_API herr_t F5Aget_version | ( | hid_t | loc_id, |
| int * | major, | ||
| int * | minor, | ||
| int * | release ) |
Get version number for given object.
| loc_id | Any HDF5 object that may carry attributes. |
Definition at line 304 of file F5A.c.
References F5Aopen_name(), F_H5Aread(), and FIBER_VERSION_ATTRIBUTE_NAME.
Referenced by F5Tget_field_Array_enum(), and F5Tget_field_ProcArray_enum().
| F5_API int F5Asave | ( | hid_t | loc_id, |
| const char * | name, | ||
| hid_t | file_type_id, | ||
| hid_t | mem_type_id, | ||
| const void * | data, | ||
| hsize_t | n ) |
Definition at line 529 of file F5A.c.
References F5printf, and name.
Referenced by F5FwriteIMAGE().
| F5_API int F5Asave_ints | ( | hid_t | loc_id, |
| const char * | name, | ||
| const int | data[], | ||
| hsize_t | n ) |
Save an array of integers as an attribute.
Definition at line 355 of file F5A.c.
References F5Aget_ints(), F5printf, and name.
Referenced by F5B_save_global_chart(), F5file_type(), F5LTcreate_topology(), F5LwriteX(), and F5Tsave_tensor().
| F5_API int F5Asave_string | ( | hid_t | loc_id, |
| const char * | name, | ||
| const char * | buf ) |
Create a string attribute which is of the size of the given string and write it to the file.
Definition at line 45 of file F5A.c.
References H5Tclose(), and name.
Referenced by F5FwriteIMAGE(), F5Tsave_F5field_enum(), F5Tsave_ProcArray_enum(), and F5Tsave_tensor().
| F5_API int F5Asave_strings | ( | hid_t | loc_id, |
| const char * | name, | ||
| const char * | buf, | ||
| int | HowMany ) |
Definition at line 79 of file F5A.c.
References H5Tclose(), and name.
Referenced by F5FwriteIMAGE().
| F5_API herr_t F5Asave_version | ( | hid_t | loc_id, |
| int | major, | ||
| int | minor, | ||
| int | release ) |
Definition at line 286 of file F5A.c.
References FIBER_VERSION_ATTRIBUTE_NAME.
Referenced by F5I_create_contents(), F5Tsave_F5field_enum(), and F5Tsave_ProcArray_enum().
| F5_API int F5Astore_integer | ( | hid_t | loc_id, |
| const char * | name, | ||
| int | data ) |
Save an integer to the file as an attribute, checking if it already existed, and if so, that it had the same value.
Definition at line 436 of file F5A.c.
References F5Aopen_name(), F5printf, and name.
Referenced by F5LTcreate_topology().
| F5_API hid_t F5Atry_to_open | ( | hid_t | location, |
| const char * | name ) |
Try to open an HDF5 attribute, silently return -1 if it does not exist.
Definition at line 23 of file F5A.c.
References F5Aopen_name(), and name.
Referenced by F5Aget_ints(), F5Aget_string(), F5B_read_chart_domain(), F5Dset_type_attribute(), F5Fget_attribute_byname(), F5Fset_attribute_byname(), F5Lget_type(), and F5Tget_field_Array_enum().
| F5_API int F5Awrite_integer | ( | hid_t | loc_id, |
| const char * | name, | ||
| int | data ) |
Save an integer to the file as an attribute, overwriting any existing value.
Definition at line 494 of file F5A.c.
References F5Aopen_name(), F5printf, and name.