bes  Updated for version 3.20.6
HDF5Float32.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 // Author: Hyo-Kyung Lee <hyoklee@hdfgroup.org> and Muqun Yang
5 // <myang6@hdfgroup.org>
6 
7 // Copyright (c) 2009-2016 The HDF Group, Inc. and OPeNDAP, Inc.
8 //
9 // This is free software; you can redistribute it and/or modify it under the
10 // terms of the GNU Lesser General Public License as published by the Free
11 // Software Foundation; either version 2.1 of the License, or (at your
12 // option) any later version.
13 //
14 // This software is distributed in the hope that it will be useful, but
15 // WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
16 // or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
17 // License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 //
23 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24 // You can contact The HDF Group, Inc. at 1800 South Oak Street,
25 // Suite 203, Champaign, IL 61820
26 
27 #ifndef _HDF5Float32_h
28 #define _HDF5Float32_h
29 
30 #include <string>
31 #include <H5Ipublic.h>
32 
33 #include "Float32.h"
34 #include "h5get.h"
35 
36 
45 
46 class HDF5Float32:public libdap::Float32 {
47  private:
48  std::string var_path;
49 
50  public:
52  HDF5Float32(const std::string &n, const std::string &vpath, const std::string &d);
53  virtual ~ HDF5Float32() { }
54 
59  virtual libdap::BaseType *ptr_duplicate();
60 
62  virtual bool read();
63 
65  friend std::string return_type(hid_t datatype);
66 
67 #if 0
68 // hid_t get_did();
70 
72 // hid_t get_tid();
73 
75 // void set_did(hid_t dset);
76 
78 // void set_tid(hid_t type);
79 #endif
80 
81 
82 };
83 
84 #endif
HDF5Float32::ptr_duplicate
virtual libdap::BaseType * ptr_duplicate()
Definition: HDF5Float32.cc:55
HDF5Float32::return_type
friend std::string return_type(hid_t datatype)
See return_type function defined in h5dds.cc.
HDF5Float32::read
virtual bool read()
Reads HDF5 32-bit float data into local buffer.
Definition: HDF5Float32.cc:60
HDF5Float32
Definition: HDF5Float32.h:46
h5get.h
HDF5Float32::HDF5Float32
HDF5Float32(const std::string &n, const std::string &vpath, const std::string &d)
Constructor.
Definition: HDF5Float32.cc:51