bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
BESDMRResponse.h
1// BESDMRResponse.h
2
3// This file is part of bes, A C++ back-end server implementation framework
4// for the OPeNDAP Data Access Protocol.
5
6// Copyright (c) 2013 OPeNDAP, Inc.
7// Author: Patrick West <pwest@rpi.edu>
8//
9// This library is free software; you can redistribute it and/or
10// modify it under the terms of the GNU Lesser General Public
11// License as published by the Free Software Foundation; either
12// version 2.1 of the License, or (at your option) any later version.
13//
14// This library is distributed in the hope that it will be useful,
15// but WITHOUT ANY WARRANTY; without even the implied warranty of
16// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17// Lesser General Public License for more details.
18//
19// You should have received a copy of the GNU Lesser General Public
20// License along with this library; if not, write to the Free Software
21// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22//
23// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24
25#ifndef I_BESDMRResponse
26#define I_BESDMRResponse 1
27
28#include <libdap/DMR.h>
29//#include <libdap/ConstraintEvaluator.h>
30
31#include "BESDapResponse.h"
32
33using namespace libdap;
34#if 0
35{
36class DMR;
37class ConstraintEvaluator;
38
39}
40#endif
41// Remove this if we can get the ConstraintEvalutor out of this code.
42#include <libdap/ConstraintEvaluator.h>
43
44
45//class DMR;
46
49class BESDMRResponse: public BESDapResponse {
50private:
51 DMR * _dmr;
52 ConstraintEvaluator _ce; //FIXME Use Dap4 CE stuff
53public:
54 BESDMRResponse(DMR *dmr);
55
56 virtual ~BESDMRResponse();
57
58 virtual void set_container(const std::string &cn);
59 virtual void clear_container();
60
61 virtual void dump(std::ostream &strm) const;
62
63 DMR *get_dmr() { return _dmr; }
64 void set_dmr(DMR *dmr) { _dmr = dmr; }
65
66 ConstraintEvaluator &get_ce() { return _ce; } // FIXME too...
67};
68
69#endif // I_BESDMRResponse
virtual void dump(std::ostream &strm) const
dumps information about this object
virtual void clear_container()
clear the container in the DAP response object
virtual void set_container(const std::string &cn)
set the container in the DAP response object