bes  Updated for version 3.20.8
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 
40 bool check_h5str(hid_t);
41 
42 void close_fileid(hid_t fid);
43 
44 hid_t get_attr_info(hid_t dset, int index, bool, DSattr_t * attr_inst, bool*);
45 
46 string get_dap_type(hid_t type,bool);
47 
48 void get_dataset(hid_t pid, const std::string &dname, DS_t * dt_inst_ptr,bool has_dimscale, bool &is_pure_dim);
49 void get_dataset(hid_t pid, const std::string &dname, DS_t * dt_inst_ptr);
50 
51 hid_t get_fileid(const char *filename);
52 
53 std::string print_attr(hid_t type, int loc, void *sm_buf);
54 
55 D4AttributeType daptype_strrep_to_dap4_attrtype(std::string s);
56 
57 //static BaseType *Get_bt(const string &vname,
58 libdap::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,
63 libdap::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 
67 bool check_dimscale(hid_t fid);
68 bool has_dimscale_attr(hid_t dataset);
69 void obtain_dimnames(hid_t dset,int, DS_t*dt_inst_ptr);
70 
71 void write_vlen_str_attrs(hid_t attr_id,hid_t ty_id, DSattr_t *, libdap::D4Attribute *d4_attr, libdap::AttrTable* d2_attr,bool is_dap4);
72 
73 bool check_str_attr_value(hid_t attr_id,hid_t atype_id,const string & value_to_compare,bool is_substr);
74 #endif //_H5GET_H
void get_dataset(hid_t pid, const string &dname, DS_t *dt_inst_ptr)
Definition: h5get.cc:435
hid_t get_fileid(const char *filename)
Definition: h5get.cc:405
void obtain_dimnames(hid_t dset, int, DS_t *dt_inst_ptr)
Definition: h5get.cc:1748
bool check_h5str(hid_t)
Definition: h5get.cc:685
hid_t get_attr_info(hid_t dset, int index, bool, DSattr_t *attr_inst, bool *)
Definition: h5get.cc:84
std::string print_attr(hid_t type, int loc, void *sm_buf)
Definition: h5get.cc:706
void close_fileid(hid_t fid)
Definition: h5get.cc:427
string get_dap_type(hid_t type, bool)
Definition: h5get.cc:285
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:94