ddn.lib.hdf5.h5o

HDF5 Object Binding

This module provides D bindings for HDF5 object operations (H5O API).

License

BSD-3-Clause

Types 10

enumH5O_type_t : int

Object type

UNKNOWN = - 1
GROUP = 0
DATASET = 1
NAMED_DATATYPE = 2
MAP = 3
NTYPES = 4
enumH5O_INFO : uint

Object info fields flags

BASIC = 0x0001
TIME = 0x0002
NUM_ATTRS = 0x0004
ALL = 0x0007
enumH5O_NATIVE_INFO : uint

Native object info fields flags.

These flags determine which fields will be filled in the H5O_native_info_t struct.

HDR = 0x0008Fill in the hdr field
META_SIZE = 0x0010Fill in the meta_size field
ALL = 0x0018Fill in all fields

Index storage information structure.

Contains size information for index and heap storage.

Fields
hsize_t index_sizeIndex size
hsize_t heap_sizeHeap size

Object header information structure.

Contains metadata about an object's header in the file.

Fields
uint version_Version number of header format in file
uint nmesgsNumber of object header messages
uint nchunksNumber of object header chunks
uint flagsObject header status flags
Nested Templates
Space usage information
Message type flags

Native file format information structure for objects.

Used by H5Oget_native_info(), H5Oget_native_info_by_name(), and H5Oget_native_info_by_idx() to return native file format information.

Fields
H5O_hdr_info_t hdrObject header information
Nested Templates
Extra metadata storage for obj & attributes

Object information structure (version 1, deprecated)

Fields
ulong filenoFile number
haddr_t addrObject address in file
H5O_type_t typeObject type
uint rcReference count of object
long atimeAccess time
long mtimeModification time
long ctimeChange time
long btimeBirth time
hsize_t num_attrsNumber of attributes
H5O_hdr_info_t hdrObject header information
Nested Templates
Extra metadata storage

Object information structure (version 2)

Fields
ulong fileno
uint rc
long atime
long mtime
long ctime
long btime
hsize_t num_attrs
aliasH5O_iterate1_t = herr_t function(hid_t obj, const char * name, const H5O_info1_t * info, void * op_data)

Object iteration callback (version 1, deprecated)

aliasH5O_iterate2_t = herr_t function(hid_t obj, const char * name, const H5O_info2_t * info, void * op_data)

Object iteration callback (version 2)

Functions 40

fnhid_t H5Oopen(hid_t loc_id, const char * name, hid_t lapl_id) extern(C) @nogc nothrowOpens an object
fnhid_t H5Oopen_by_token(hid_t loc_id, H5O_token_t token) extern(C) @nogc nothrowOpens an object by token
fnhid_t H5Oopen_by_idx(hid_t loc_id, const char * group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, hid_t lapl_id) extern(C) @nogc nothrowOpens an object by index
fnherr_t H5Oclose(hid_t object_id) extern(C) @nogc nothrowCloses an object
fnhtri_t H5Oexists_by_name(hid_t loc_id, const char * name, hid_t lapl_id) extern(C) @nogc nothrowChecks if object exists by name
fnherr_t H5Oget_info3(hid_t loc_id, H5O_info2_t * oinfo, uint fields) extern(C) @nogc nothrowGets object information
fnherr_t H5Oget_info_by_name3(hid_t loc_id, const char * name, H5O_info2_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowGets object information by name
fnherr_t H5Oget_info_by_idx3(hid_t loc_id, const char * group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5O_info2_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowGets object information by index
fnherr_t H5Olink(hid_t obj_id, hid_t new_loc_id, const char * new_name, hid_t lcpl_id, hid_t lapl_id) extern(C) @nogc nothrowLinks an object
fnherr_t H5Ocopy(hid_t src_loc_id, const char * src_name, hid_t dst_loc_id, const char * dst_name, hid_t ocpypl_id, hid_t lcpl_id) extern(C) @nogc nothrowCopies an object
fnherr_t H5Oincr_refcount(hid_t object_id) extern(C) @nogc nothrowIncrements object reference count
fnherr_t H5Odecr_refcount(hid_t object_id) extern(C) @nogc nothrowDecrements object reference count
fnherr_t H5Oflush(hid_t obj_id) extern(C) @nogc nothrowFlushes object to disk
fnherr_t H5Orefresh(hid_t oid) extern(C) @nogc nothrowRefreshes object
fnherr_t H5Ovisit3(hid_t obj_id, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate2_t op, void * op_data, uint fields) extern(C) @nogc nothrowVisits objects
fnherr_t H5Ovisit_by_name3(hid_t loc_id, const char * obj_name, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate2_t op, void * op_data, uint fields, hid_t lapl_id) extern(C) @nogc nothrowVisits objects by name
fnherr_t H5Otoken_cmp(hid_t loc_id, const H5O_token_t * token1, const H5O_token_t * token2, int * cmp_value) extern(C) @nogc nothrowCompares two object tokens
fnherr_t H5Otoken_to_str(hid_t loc_id, const H5O_token_t * token, char * * token_str) extern(C) @nogc nothrowConverts token to string
fnherr_t H5Otoken_from_str(hid_t loc_id, const char * token_str, H5O_token_t * token) extern(C) @nogc nothrowConverts string to token
fnherr_t H5Oget_native_info(hid_t loc_id, H5O_native_info_t * oinfo, uint fields) extern(C) @nogc nothrowRetrieves native file format information for an object.
fnherr_t H5Oget_native_info_by_name(hid_t loc_id, const char * name, H5O_native_info_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowRetrieves native file format information for an object by name.
fnherr_t H5Oget_native_info_by_idx(hid_t loc_id, const char * group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5O_native_info_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowRetrieves native file format information for an object by index.
fnherr_t H5Odisable_mdc_flushes(hid_t object_id) extern(C) @nogc nothrowDisables metadata cache flushes for an object.
fnherr_t H5Oenable_mdc_flushes(hid_t object_id) extern(C) @nogc nothrowEnables metadata cache flushes for an object.
fnherr_t H5Oare_mdc_flushes_disabled(hid_t object_id, hbool_t * are_disabled) extern(C) @nogc nothrowChecks if metadata cache flushes are disabled for an object.
fnhid_t H5Oopen_by_addr(hid_t loc_id, haddr_t addr) extern(C) @nogc nothrowOpens an object by address (deprecated).
fnssize_t H5Oget_comment(hid_t obj_id, char * comment, size_t bufsize) extern(C) @nogc nothrowGets the comment for an object.
fnssize_t H5Oget_comment_by_name(hid_t loc_id, const char * name, char * comment, size_t bufsize, hid_t lapl_id) extern(C) @nogc nothrowGets the comment for an object by name.
fnherr_t H5Oset_comment(hid_t obj_id, const char * comment) extern(C) @nogc nothrowSets a comment for an object.
fnherr_t H5Oset_comment_by_name(hid_t loc_id, const char * name, const char * comment, hid_t lapl_id) extern(C) @nogc nothrowSets a comment for an object by name.
fnherr_t H5Oget_info1(hid_t loc_id, H5O_info1_t * oinfo) extern(C) @nogc nothrowGets object information (version 1, deprecated).
fnherr_t H5Oget_info2(hid_t loc_id, H5O_info1_t * oinfo, uint fields) extern(C) @nogc nothrowGets object information (version 2, deprecated).
fnherr_t H5Oget_info_by_name1(hid_t loc_id, const char * name, H5O_info1_t * oinfo, hid_t lapl_id) extern(C) @nogc nothrowGets object information by name (version 1, deprecated).
fnherr_t H5Oget_info_by_name2(hid_t loc_id, const char * name, H5O_info1_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowGets object information by name (version 2, deprecated).
fnherr_t H5Oget_info_by_idx1(hid_t loc_id, const char * group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5O_info1_t * oinfo, hid_t lapl_id) extern(C) @nogc nothrowGets object information by index (version 1, deprecated).
fnherr_t H5Oget_info_by_idx2(hid_t loc_id, const char * group_name, H5_index_t idx_type, H5_iter_order_t order, hsize_t n, H5O_info1_t * oinfo, uint fields, hid_t lapl_id) extern(C) @nogc nothrowGets object information by index (version 2, deprecated).
fnherr_t H5Ovisit1(hid_t obj_id, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate1_t op, void * op_data) extern(C) @nogc nothrowVisits objects (version 1, deprecated).
fnherr_t H5Ovisit2(hid_t obj_id, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate1_t op, void * op_data, uint fields) extern(C) @nogc nothrowVisits objects (version 2, deprecated).
fnherr_t H5Ovisit_by_name1(hid_t loc_id, const char * obj_name, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate1_t op, void * op_data, hid_t lapl_id) extern(C) @nogc nothrowVisits objects by name (version 1, deprecated).
fnherr_t H5Ovisit_by_name2(hid_t loc_id, const char * obj_name, H5_index_t idx_type, H5_iter_order_t order, H5O_iterate1_t op, void * op_data, uint fields, hid_t lapl_id) extern(C) @nogc nothrowVisits objects by name (version 2, deprecated).