bes
Updated for version 3.20.6
|
#include <hdf5.h>
#include <vector>
#include <string>
Go to the source code of this file.
Functions | |
void | get_data (hid_t dset, void *buf) |
int | get_slabdata (hid_t dset, int *, int *, int *, int num_dim, void *) |
void | get_strdata (int, char *, char *, int) |
void | get_vlen_str_data (char *src, std::string &finalstrval) |
bool | promote_char_to_short (H5T_class_t type_cls, hid_t type_id) |
bool | read_vlen_string (hid_t d_dset_id, int nelms, hsize_t *offset, hsize_t *step, hsize_t *count, std::vector< std::string > &finstrval) |
Common helper functions to access HDF5 data for both the CF and the default options.
Definition in file h5common.h.
void get_data | ( | hid_t | dset, |
void * | buf | ||
) |
[in] | dset | dataset id(dset) |
[out] | buf | pointer to a buffer |
will get all data of a dset dataset and put it into buf. Note: this routine is only used to access HDF5 integer,float and fixed-size string.
Definition at line 50 of file h5common.cc.
int get_slabdata | ( | hid_t | dset, |
int * | offset, | ||
int * | step, | ||
int * | count, | ||
int | num_dim, | ||
void * | buf | ||
) |
will get hyperslab data of a dataset and put it into buf.
[in] | dset | dataset id |
[in] | offset | starting point |
[in] | step | stride |
[in] | count | count |
[in] | num_dim | number of array dimensions |
[out] | buf | pointer to a buffer |
Definition at line 144 of file h5common.cc.
void get_strdata | ( | int | strindex, |
char * | allbuf, | ||
char * | buf, | ||
int | elesize | ||
) |
will get an individual string data from all string data elements and put it into buf.
[in] | strindex | index of H5T_STRING array |
[in] | allbuf | pointer to string buffer that has been built so far |
[in] | elesize | size of string element in the array |
[out] | buf | pointer to a buf |
Definition at line 115 of file h5common.cc.