bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
HDF5GMCFMissNonLLCVArray.cc
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
31
32#include <iostream>
33#include <memory>
34#include <sstream>
35#include <BESDebug.h>
36
38#include "HDF5RequestHandler.h"
39
40using namespace std;
41using namespace libdap;
42
43BaseType *HDF5GMCFMissNonLLCVArray::ptr_duplicate()
44{
45 auto HDF5GMCFMissNonLLCVArray_unique = make_unique<HDF5GMCFMissNonLLCVArray>(*this);
46 return HDF5GMCFMissNonLLCVArray_unique.release();
47}
48
49bool HDF5GMCFMissNonLLCVArray::read()
50{
51 BESDEBUG("h5","Coming to HDF5GMCFMissNonLLCVArray read "<<endl);
52
53 // No need to cache this since the calculation is trival
54 read_data_NOT_from_mem_cache(false,nullptr);
55
56#if 0
57 if(nullptr == HDF5RequestHandler::get_srdata_mem_cache())
58 read_data_NOT_from_mem_cache(false,nullptr);
59 else {
60 // Notice for this special fake variable case, we just use the info. from DAP.
61 // dataset() is the file name and name() is the HDF5 unique var name.
62 string cache_key = dataset() + name();
63 handle_data_with_mem_cache(H5INT32,tnumelm,1,cache_key);
64 }
65
66#endif
67 return true;
68}
69
70void HDF5GMCFMissNonLLCVArray::read_data_NOT_from_mem_cache(bool /*add_cache*/,void*/*buf*/) {
71
72 BESDEBUG("h5","Coming to HDF5GMCFMissNonLLCVArray: read_data_NOT_from_mem_cache "<<endl);
73 write_nature_number_buffer(rank,tnumelm);
74
75 return;
76}
This class specifies the retrieval of the values of non-lat/lon coordinate variables for general HDF5...
include the entry functions to execute the handlers