bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDF5CFUtil Struct Reference
Collaboration diagram for HDF5CFUtil:
Collaboration graph

Static Public Member Functions

static bool cf_dap2_support_numeric_type (H5DataType dtype, bool is_dap4)
 
static bool cf_strict_support_type (H5DataType dtype, bool is_dap4)
 
static void cha_co (std::string &co, const std::string &vpath)
 
static void close_fileid (hid_t, bool)
 
static void dtoa (double, char *, int)
 
static void gen_unique_name (std::string &str, std::set< std::string > &namelist, int &clash_index)
 
static std::string get_double_str (double x, int total_digit, int after_point)
 
static std::string get_int_str (int x)
 
static void get_relpath_pos (const std::string &temp_str, const std::string &relpath, std::vector< size_t > &var_pos)
 
static size_t H5_numeric_atomic_type_size (H5DataType h5type)
 
static H5DataType H5type_to_H5DAPtype (hid_t h5_type_id)
 Map HDF5 Datatype to the intermediate H5DAPtype for the future use.
 
static int int_to_str (int, char str[], int)
 
static std::string obtain_cache_fname (const std::string &fprefix, const std::string &fname, const std::string &vname)
 
static std::string obtain_string_after_lastslash (const std::string &s)
 
static std::string obtain_string_before_lastslash (const std::string &s)
 
static void parser_gpm_l3_gridheader (const std::vector< char > &value, int &latsize, int &lonsize, float &lat_start, float &lon_start, float &lat_res, float &lon_res, bool check_reg_orig)
 
static ssize_t read_buffer_from_file (int fd, void *buf, size_t)
 Getting a subset of a variable.
 
static std::string remove_substrings (std::string str, const std::string &s)
 
static void rev_str (char *str, int len)
 
static void Split (const char *s, int len, char sep, std::vector< std::string > &names)
 
static void Split (const char *sz, char sep, std::vector< std::string > &names)
 Assume sz is Null terminated string.
 
static void Split_helper (std::vector< std::string > &tokens, const std::string &text, const char sep)
 
static std::string trim_string (hid_t dtypeid, const std::string &s, int num_sect, size_t section_size, std::vector< size_t > &sect_newsize)
 
static bool use_data_mem_cache (H5DataType h5type, CVType cvtype, const std::string &varpath)
 

Detailed Description

Definition at line 86 of file HDF5CFUtil.h.

Member Function Documentation

◆ cf_dap2_support_numeric_type()

bool HDF5CFUtil::cf_dap2_support_numeric_type ( H5DataType dtype,
bool is_dap4 )
static

Definition at line 198 of file HDF5CFUtil.cc.

◆ cf_strict_support_type()

bool HDF5CFUtil::cf_strict_support_type ( H5DataType dtype,
bool is_dap4 )
static

Definition at line 181 of file HDF5CFUtil.cc.

◆ cha_co()

void HDF5CFUtil::cha_co ( std::string & co,
const std::string & vpath )
static

Definition at line 1269 of file HDF5CFUtil.cc.

◆ close_fileid()

void HDF5CFUtil::close_fileid ( hid_t file_id,
bool pass_fileid )
static

Definition at line 523 of file HDF5CFUtil.cc.

◆ dtoa()

void HDF5CFUtil::dtoa ( double n,
char * res,
int afterpoint )
static

Definition at line 571 of file HDF5CFUtil.cc.

◆ gen_unique_name()

void HDF5CFUtil::gen_unique_name ( std::string & str,
std::set< std::string > & namelist,
int & clash_index )
static

Definition at line 308 of file HDF5CFUtil.cc.

◆ get_double_str()

string HDF5CFUtil::get_double_str ( double x,
int total_digit,
int after_point )
static

Definition at line 632 of file HDF5CFUtil.cc.

◆ get_int_str()

string HDF5CFUtil::get_int_str ( int x)
static

Definition at line 603 of file HDF5CFUtil.cc.

◆ get_relpath_pos()

void HDF5CFUtil::get_relpath_pos ( const std::string & temp_str,
const std::string & relpath,
std::vector< size_t > & var_pos )
static

Definition at line 1248 of file HDF5CFUtil.cc.

◆ H5_numeric_atomic_type_size()

size_t HDF5CFUtil::H5_numeric_atomic_type_size ( H5DataType h5type)
static

Definition at line 118 of file HDF5CFUtil.cc.

◆ H5type_to_H5DAPtype()

H5DataType HDF5CFUtil::H5type_to_H5DAPtype ( hid_t h5_type_id)
static

Map HDF5 Datatype to the intermediate H5DAPtype for the future use.

Definition at line 53 of file HDF5CFUtil.cc.

◆ int_to_str()

int HDF5CFUtil::int_to_str ( int x,
char str[],
int d )
static

Definition at line 551 of file HDF5CFUtil.cc.

◆ obtain_cache_fname()

string HDF5CFUtil::obtain_cache_fname ( const std::string & fprefix,
const std::string & fname,
const std::string & vname )
static

Definition at line 1204 of file HDF5CFUtil.cc.

◆ obtain_string_after_lastslash()

string HDF5CFUtil::obtain_string_after_lastslash ( const std::string & s)
static

Definition at line 214 of file HDF5CFUtil.cc.

◆ obtain_string_before_lastslash()

string HDF5CFUtil::obtain_string_before_lastslash ( const std::string & s)
static

Definition at line 224 of file HDF5CFUtil.cc.

◆ parser_gpm_l3_gridheader()

void HDF5CFUtil::parser_gpm_l3_gridheader ( const std::vector< char > & value,
int & latsize,
int & lonsize,
float & lat_start,
float & lon_start,
float & lat_res,
float & lon_res,
bool check_reg_orig )
static

Definition at line 363 of file HDF5CFUtil.cc.

◆ read_buffer_from_file()

ssize_t HDF5CFUtil::read_buffer_from_file ( int fd,
void * buf,
size_t total_read )
static

Getting a subset of a variable.

Definition at line 1197 of file HDF5CFUtil.cc.

◆ remove_substrings()

string HDF5CFUtil::remove_substrings ( std::string str,
const std::string & s )
static

Definition at line 298 of file HDF5CFUtil.cc.

◆ rev_str()

void HDF5CFUtil::rev_str ( char * str,
int len )
static

Definition at line 533 of file HDF5CFUtil.cc.

◆ Split() [1/2]

void HDF5CFUtil::Split ( const char * s,
int len,
char sep,
std::vector< std::string > & names )
static

From a string separated by a separator to a list of string, for example, split "ab,c" to {"ab","c"}

Definition at line 342 of file HDF5CFUtil.cc.

◆ Split() [2/2]

void HDF5CFUtil::Split ( const char * sz,
char sep,
std::vector< std::string > & names )
static

Assume sz is Null terminated string.

Definition at line 358 of file HDF5CFUtil.cc.

◆ Split_helper()

void HDF5CFUtil::Split_helper ( std::vector< std::string > & tokens,
const std::string & text,
const char sep )
static

Definition at line 326 of file HDF5CFUtil.cc.

◆ trim_string()

string HDF5CFUtil::trim_string ( hid_t dtypeid,
const std::string & s,
int num_sect,
size_t section_size,
std::vector< size_t > & sect_newsize )
static

Trim the string with many NULL terms or garbage characters to simply a string with a NULL terminator. This method will not handle the NULL PAD case.

Definition at line 234 of file HDF5CFUtil.cc.

◆ use_data_mem_cache()

bool HDF5CFUtil::use_data_mem_cache ( H5DataType h5type,
CVType cvtype,
const std::string & varpath )
static

Definition at line 163 of file HDF5CFUtil.cc.


The documentation for this struct was generated from the following files: