mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-12-27 08:01:04 +08:00
9e97a22b8b
* Add doxygen for high level modules. * Committing clang-format changes * Correct spelling based on spelling check. * Committing clang-format changes Co-authored-by: vchoi <vchoi@jelly.ad.hdfgroup.org> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
28 lines
590 B
C
28 lines
590 B
C
/* -*- c-file-style: "stroustrup" -*- */
|
|
|
|
//! <!-- [get_attribute_info] -->
|
|
|
|
H5T_class_t type_class;
|
|
size_t type_size;
|
|
hsize_t dims[0];
|
|
... status = H5LTget_attribute_info(file_id, "/", STRNAME, dims, &type_class, &type_size);
|
|
if (type_class == H5T_STRING) {
|
|
printf("Attribute is a string.\n");
|
|
printf("String size: %i\n", type_size);
|
|
|
|
//! <!-- [get_attribute_info] -->
|
|
|
|
//! <!-- [enum] -->
|
|
|
|
“H5T_ENUM
|
|
{
|
|
H5T_NATIVE_INT;
|
|
“Bob” 0;
|
|
“Elena” 1;
|
|
“Quincey” 2;
|
|
“Frank” 3;
|
|
}
|
|
”
|
|
|
|
//! <!-- [enum] -->
|