bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
h5common.cc File Reference
#include "h5common.h"
#include <cstring>
#include <libdap/InternalErr.h>
#include <BESDebug.h>
Include dependency graph for dmrpp_module/h5common.cc:

Go to the source code of this file.

Functions

void claim_vlen_string_memory (hid_t memtype, hid_t dspace, hid_t dtypeid, hid_t mspace, vector< char > &strval, bool is_scalar)
 
void get_data (hid_t dset, void *buf)
 
int get_slabdata (hid_t dset, const int64_t *offset, const int64_t *step, const int64_t *count, const int num_dim, void *buf)
 
void get_strdata (int64_t strindex, char *allbuf, char *buf, int elesize)
 
void get_vlen_str_data (const char *temp_bp, string &finalstr_val)
 
bool promote_char_to_short (H5T_class_t type_cls, hid_t type_id)
 
bool read_vlen_string (hid_t dsetid, const int64_t nelms, const hsize_t *hoffset, const hsize_t *hstep, const hsize_t *hcount, vector< string > &finstrval)
 
void read_vlen_string_value (const int64_t nelms, vector< char > &strval, vector< string > &finstrval, size_t ty_size)
 

Detailed Description

Common helper functions to access HDF5 data for both the CF and the default options.

Definition in file dmrpp_module/h5common.cc.

Function Documentation

◆ claim_vlen_string_memory()

void claim_vlen_string_memory ( hid_t memtype,
hid_t dspace,
hid_t dtypeid,
hid_t mspace,
vector< char > & strval,
bool is_scalar )

Definition at line 393 of file dmrpp_module/h5common.cc.

◆ get_data()

void get_data ( hid_t dset,
void * buf )
Parameters
[in]dsetdataset id(dset)
[out]bufpointer 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 dmrpp_module/h5common.cc.

◆ get_slabdata()

int get_slabdata ( hid_t dset,
const int64_t * offset,
const int64_t * step,
const int64_t * count,
const int num_dim,
void * buf )

Definition at line 149 of file dmrpp_module/h5common.cc.

◆ get_strdata()

void get_strdata ( int64_t strindex,
char * allbuf,
char * buf,
int elesize )

Definition at line 115 of file dmrpp_module/h5common.cc.

◆ get_vlen_str_data()

void get_vlen_str_data ( const char * temp_bp,
string & finalstr_val )

Definition at line 427 of file dmrpp_module/h5common.cc.

◆ promote_char_to_short()

bool promote_char_to_short ( H5T_class_t type_cls,
hid_t type_id )

Definition at line 413 of file dmrpp_module/h5common.cc.

◆ read_vlen_string()

bool read_vlen_string ( hid_t dsetid,
const int64_t nelms,
const hsize_t * hoffset,
const hsize_t * hstep,
const hsize_t * hcount,
vector< string > & finstrval )

Definition at line 243 of file dmrpp_module/h5common.cc.

◆ read_vlen_string_value()

void read_vlen_string_value ( const int64_t nelms,
vector< char > & strval,
vector< string > & finstrval,
size_t ty_size )

Definition at line 374 of file dmrpp_module/h5common.cc.