bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
DapRequestHandler.h
1// DapRequestHandler.h
2
3// Copyright (c) 2013 OPeNDAP, Inc. Author: James Gallagher
4// <jgallagher@opendap.org>, Patrick West <pwest@opendap.org>
5// Nathan Potter <npotter@opendap.org>
6//
7// modify it under the terms of the GNU Lesser General Public License
8// as published by the Free Software Foundation; either version 2.1 of
9// the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful, but
12// WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// License along with this library; if not, write to the Free Software
17// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18// 02110-1301 U\ SA
19//
20// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI.
21// 02874-0112.
22
23#ifndef I_DapRequestHandler_H
24#define I_DapRequestHandler_H
25
26#include <string>
27
28#include "BESRequestHandler.h"
29
30namespace libdap {
31 class DMR;
32 class DDS;
33}
34
35class DapRequestHandler: public BESRequestHandler {
36 static bool d_use_series_values;
37 static bool d_use_series_values_set;
38
39 static bool d_use_test_types;
40 static bool d_use_test_types_set;
41
42 // These are static because they are used by the static public methods.
43 static void build_dmr_from_file(const std::string& accessed, bool explicit_containers, libdap::DMR* dmr);
44 static void build_dds_from_file(const std::string& accessed, bool explicit_containers, libdap::DDS* dds);
45 static void load_dds_from_data_file(const std::string &accessed, libdap::DDS &dds);
46
47public:
48 DapRequestHandler(const std::string &name);
49 virtual ~DapRequestHandler(void) { }
50
51 static bool dap_build_das(BESDataHandlerInterface &dhi);
52 static bool dap_build_dds(BESDataHandlerInterface &dhi);
53 static bool dap_build_data(BESDataHandlerInterface &dhi);
54
55 static bool dap_build_dmr(BESDataHandlerInterface &dhi);
56 static bool dap_build_dap4data(BESDataHandlerInterface &dhi);
57
58 static bool dap_build_vers(BESDataHandlerInterface &dhi);
59 static bool dap_build_help(BESDataHandlerInterface &dhi);
60#if 0
61 void add_attributes(BESDataHandlerInterface &dhi);
62#endif
63 virtual void dump(std::ostream &strm) const;
64};
65
66#endif // DapRequestHandler.h
Structure storing information used by the BES to handle the request.
static bool dap_build_das(BESDataHandlerInterface &dhi)
static bool dap_build_dmr(BESDataHandlerInterface &dhi)
virtual void dump(std::ostream &strm) const
dumps information about this object