bes Updated for version 3.20.13
h5get.h
Go to the documentation of this file.
1// This file is part of hdf5_handler a HDF5 file handler for the OPeNDAP
2// data server.
3
4// Copyright (c) 2007-2016 The HDF Group, Inc. and OPeNDAP, Inc.
5//
6// This is free software; you can redistribute it and/or modify it under the
7// terms of the GNU Lesser General Public License as published by the Free
8// Software Foundation; either version 2.1 of the License, or (at your
9// option) any later version.
10//
11// This software is distributed in the hope that it will be useful, but
12// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14// License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19//
20// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
21// You can contact The HDF Group, Inc. at 1800 South Oak Street,
22// Suite 203, Champaign, IL 61820
27
32
33
34#ifndef _H5GET_H
35#define _H5GET_H
36#include "hdf5_handler.h"
37#include "h5common.h"
38#include "h5apicompatible.h"
39
40bool check_h5str(hid_t);
41
42void close_fileid(hid_t fid);
43
44hid_t get_attr_info(hid_t dset, int index, bool, DSattr_t * attr_inst, bool*);
45
46std::string get_dap_type(hid_t type,bool);
47
48void get_dataset_dmr(const hid_t file_id, hid_t pid, const std::string &dname, DS_t * dt_inst_ptr,bool has_dimscale, bool &is_pure_dims,std::vector<link_info_t> &);
49void get_dataset(hid_t pid, const std::string &dname, DS_t * dt_inst_ptr);
50
51hid_t get_fileid(const char *filename);
52
53std::string print_attr(hid_t type, int loc, void *sm_buf);
54
55D4AttributeType daptype_strrep_to_dap4_attrtype(const std::string & s);
56
57//static BaseType *Get_bt(const string &vname,
58libdap::BaseType *Get_bt(const std::string &vname,const std::string &var_path,
59 const std::string &dataset,
60 hid_t datatype,bool is_dap4);
61
62//static Structure *Get_structure(const string &varname,
63libdap::Structure *Get_structure(const std::string &varname,const std::string &var_path,
64 const std::string &dataset,
65 hid_t datatype,bool is_dap4);
66
67bool check_dimscale(hid_t fid);
68bool has_dimscale_attr(hid_t dataset);
69void obtain_dimnames(const hid_t file_id, hid_t dset,int, DS_t*dt_inst_ptr, std::vector<link_info_t>&);
70
71void write_vlen_str_attrs(hid_t attr_id,hid_t ty_id, const DSattr_t *, libdap::D4Attribute *d4_attr, libdap::AttrTable* d2_attr,bool is_dap4);
72
73bool check_str_attr_value(hid_t attr_id,hid_t atype_id,const string & value_to_compare,bool is_substr);
74
75std::string obtain_shortest_ancestor_path(const std::vector<std::string> &);
76
77#endif //_H5GET_H
void get_dataset(hid_t pid, const string &dname, DS_t *dt_inst_ptr)
Definition: h5get.cc:453
hid_t get_fileid(const char *filename)
Definition: h5get.cc:412
bool check_h5str(hid_t)
Definition: h5get.cc:849
hid_t get_attr_info(hid_t dset, int index, bool, DSattr_t *attr_inst, bool *)
Definition: h5get.cc:90
std::string print_attr(hid_t type, int loc, void *sm_buf)
Definition: h5get.cc:868
void close_fileid(hid_t fid)
Definition: h5get.cc:434
std::string get_dap_type(hid_t type, bool)
Definition: h5get.cc:292
The main header of the HDF5 OPeNDAP handler.
A structure for DDS generation.
Definition: hdf5_handler.h:71
A structure for DAS generation.
Definition: hdf5_handler.h:96