|
OPeNDAP Hyrax Back End Server (BES)
Updated for version 3.8.3
|
Helper functions to generate DDS/DAS/DODS for the default option. More...
#include "hdf5_handler.h"

Go to the source code of this file.
Functions | |
| bool | check_h5str (hid_t) |
| checks if type is HDF5 string type More... | |
| void | close_fileid (hid_t fid) |
| closes HDF5 file reffered by fid. More... | |
| char * | correct_name (char *) |
| hid_t | get_attr_info (hid_t dset, int index, DSattr_t *attr_inst, bool *) |
| string | get_dap_type (hid_t type) |
| returns the string representation of HDF5 type. More... | |
| void | get_data (hid_t dset, void *buf) |
| will get all data of a dset dataset and put it into buf. More... | |
| void | get_dataset (hid_t pid, const string &dname, DS_t *dt_inst_ptr) |
| obtain data information in a dataset datatype, dataspace(dimension sizes) and number of dimensions and put these information into a pointer of data struct. More... | |
| hid_t | get_fileid (const char *filename) |
| gets HDF5 file id. More... | |
| int | get_slabdata (hid_t dset, int *, int *, int *, int num_dim, void *) |
| will get hyperslab data of a dataset and put it into buf. More... | |
| void | get_strdata (int, char *, char *, int) |
| will get an individual string data from all string data elements and put it into buf. More... | |
Helper functions to generate DDS/DAS/DODS for the default option.
Definition in file h5get.h.
| bool check_h5str | ( | hid_t | h5type | ) |
| void close_fileid | ( | hid_t | fid | ) |
closes HDF5 file reffered by fid.
This function closes the HDF5 file.
| fid | HDF5 file id |
Definition at line 356 of file h5get.cc.
Referenced by HDF4RequestHandler::hdf4_build_das(), HDF4RequestHandler::hdf4_build_data(), HDF4RequestHandler::hdf4_build_data_with_IDs(), HDF4RequestHandler::hdf4_build_dds(), HDF5RequestHandler::hdf5_build_das(), HDF5RequestHandler::hdf5_build_data(), and HDF5RequestHandler::hdf5_build_dds().
| char* correct_name | ( | char * | ) |
| hid_t get_attr_info | ( | hid_t | dset, |
| int | index, | ||
| DSattr_t * | attr_inst, | ||
| bool * | |||
| ) |
Definition at line 56 of file h5get.cc.
References DODS_MAX_RANK, and NULL.
Referenced by read_objects().
| string get_dap_type | ( | hid_t | type | ) |
returns the string representation of HDF5 type.
This function will get the text representation(string) of the corresponding DODS datatype. DODS-HDF5 subclass method will use this function.
| type | datatype id |
Definition at line 237 of file h5get.cc.
Referenced by HDF5Float32::read(), HDF5Byte::read(), HDF5UInt16::read(), HDF5UInt32::read(), HDF5Int32::read(), HDF5Int16::read(), HDF5Float64::read(), HDF5Str::read(), HDF5Array::read(), and read_objects().
| void get_data | ( | hid_t | dset, |
| void * | buf | ||
| ) |
will get all data of a dset dataset and put it into buf.
| [in] | dset | dataset id(dset) |
| [out] | buf | pointer to a buffer |
Definition at line 521 of file h5get.cc.
Referenced by HDF5Float32::read(), HDF5Byte::read(), HDF5UInt16::read(), HDF5UInt32::read(), HDF5Int32::read(), HDF5Int16::read(), HDF5Float64::read(), HDF5Str::read(), and HDF5Array::read().
| void get_dataset | ( | hid_t | pid, |
| const string & | dname, | ||
| DS_t * | dt_inst_ptr | ||
| ) |
obtain data information in a dataset datatype, dataspace(dimension sizes) and number of dimensions and put these information into a pointer of data struct.
| [in] | pid | parent object id(group id) |
| [in] | dname | dataset name |
| [out] | dt_inst_ptr | pointer to the attribute struct(* attr_inst_ptr) |
Definition at line 374 of file h5get.cc.
References DODS_MAX_RANK.
Referenced by depth_first().
| hid_t get_fileid | ( | const char * | filename | ) |
gets HDF5 file id.
This function is used because H5Fopen cannot be directly used in a C++ code.
| filename | HDF5 filename |
Definition at line 334 of file h5get.cc.
Referenced by HDF5RequestHandler::hdf5_build_das(), HDF5RequestHandler::hdf5_build_data(), and HDF5RequestHandler::hdf5_build_dds().
| 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 661 of file h5get.cc.
References NULL.
Referenced by HDF5Array::read().
| 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 |