bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDF5GMCFFillIndexArray.h
Go to the documentation of this file.
1// This file is part of the hdf5_handler implementing for the CF-compliant
2// Copyright (c) 2011-2023 The HDF Group, Inc. and OPeNDAP, Inc.
3//
4// This is free software; you can redistribute it and/or modify it under the
5// terms of the GNU Lesser General Public License as published by the Free
6// Software Foundation; either version 2.1 of the License, or (at your
7// option) any later version.
8//
9// This software is distributed in the hope that it will be useful, but
10// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
12// License for more details.
13//
14// You should have received a copy of the GNU Lesser General Public
15// License along with this library; if not, write to the Free Software
16// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17//
18// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
19// You can contact The HDF Group, Inc. at 410 E University Ave,
20// Suite 200, Champaign, IL 61820
21
32
33#ifndef _HDF5GMCFFILLINDEXARRAY_H
34#define _HDF5GMCFFILLINDEXARRAY_H
35
36// STL includes
37#include <string>
38#include <vector>
39
40#include "HDF5CF.h"
41#include "HDF5BaseArray.h"
42
43
44class HDF5GMCFFillIndexArray: public HDF5BaseArray {
45public:
46 HDF5GMCFFillIndexArray(int h5_rank, H5DataType h5_dtype, bool h5_is_dap4, const string & n = "", libdap::BaseType * v = nullptr) :
47 HDF5BaseArray(n, v), rank(h5_rank), dtype(h5_dtype),is_dap4(h5_is_dap4)
48 {
49 }
50
51 ~ HDF5GMCFFillIndexArray() override = default;
52 libdap::BaseType *ptr_duplicate() override;
53 bool read() override;
54 void read_data_NOT_from_mem_cache(bool add_cache, void* /*buf FIXME Not used ever? jhrg 7/5/17*/) override;
55
56private:
57 int rank;
58 H5DataType dtype;
59 bool is_dap4;
60};
61
62#endif // _HDF5GMCFFILLINDEXARRAY_H
63
A helper class that aims to reduce code redundence for different special CF derived array class For e...
This class specifies the core engineering of mapping HDF5 to DAP by following CF.