-
Notifications
You must be signed in to change notification settings - Fork 3
/
HDF5Int16.h
73 lines (59 loc) · 2.28 KB
/
HDF5Int16.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// This file is part of hdf5_handler a HDF5 file handler for the OPeNDAP
// data server.
// Author: Hyo-Kyung Lee <hyoklee@hdfgroup.org> and Muqun Yang
// <myang6@hdfgroup.org>
// Copyright (c) 2009-2016 The HDF Group, Inc. and OPeNDAP, Inc.
//
// This is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License as published by the Free
// Software Foundation; either version 2.1 of the License, or (at your
// option) any later version.
//
// This software is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
// License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
// You can contact The HDF Group, Inc. at 1800 South Oak Street,
// Suite 203, Champaign, IL 61820
#ifndef _HDF5Int16_h
#define _HDF5Int16_h
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <H5Ipublic.h>
#include <libdap/Int16.h>
#include "h5get.h"
/// \file HDF5Int16.h
/// \brief A class for HDF5 signed 16 bit integer type.
///
/// This class provides a way to map HDF5 signed 16 bit integer to DAP Int16.
///
/// \author Hyo-Kyung Lee (hyoklee@hdfgroup.org)
/// \author Kent Yang (ymuqun@hdfgroup.org)
/// \author James Gallagher (jgallagher@opendap.org)
///
class HDF5Int16:public libdap::Int16 {
private:
std::string var_path;
public:
/// Constructor
HDF5Int16(const std::string &n, const std::string &vpath, const std::string &d);
virtual ~ HDF5Int16() { }
/// Clone this instance.
///
/// Allocate a new instance and copy *this into it. This method must
/// perform a deep copy.
/// \return A newly allocated copy of this class
virtual libdap::BaseType *ptr_duplicate();
/// Reads HDF5 16-bit integer data into local buffer
virtual bool read();
/// See return_type function defined in h5dds.cc.
friend std::string return_type(hid_t datatype);
};
#endif