bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDF5D4Enum.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// Copyright (c) The HDF Group, Inc. and OPeNDAP, Inc.
4//
5// This is free software; you can redistribute it and/or modify it under the
6// terms of the GNU Lesser General Public License as published by the Free
7// Software Foundation; either version 2.1 of the License, or (at your
8// option) any later version.
9//
10// This software is distributed in the hope that it will be useful, but
11// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13// License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public
16// License along with this library; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18//
19// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
20// You can contact The HDF Group, Inc. at 410 E University Ave,
21// Suite 200, Champaign, IL 61820
22
23#ifndef _HDF5D4Enum_h
24#define _HDF5D4Enum_h
25
26#include <stdlib.h>
27#include <stdio.h>
28#include <string.h>
29#include <H5Ipublic.h>
30#include <libdap/D4Enum.h>
31#include <libdap/D4EnumDefs.h>
32#include "h5get.h"
33
34
41
42class HDF5D4Enum:public libdap::D4Enum {
43 private:
44 std::string var_path;
45
46 public:
47
49 HDF5D4Enum(const std::string &n, const std::string &vpath, const std::string &dataset, libdap::Type type);
50 ~ HDF5D4Enum() override = default;
51
57 libdap::BaseType *ptr_duplicate() override;
58
60 bool read() override;
61 void close_objids(hid_t mem_type, hid_t base_type, hid_t dtype, hid_t dset_id, hid_t file_id) const;
62
63};
64#endif
libdap::BaseType * ptr_duplicate() override
Definition HDF5D4Enum.cc:45
HDF5D4Enum(const std::string &n, const std::string &vpath, const std::string &dataset, libdap::Type type)
Constructor.
Definition HDF5D4Enum.cc:41
bool read() override
Reads HDF5 16-bit integer data into local buffer.
Definition HDF5D4Enum.cc:51