bes  Updated for version 3.20.6
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 <DMR.h>
29 //#include <ConstraintEvaluator.h>
30 
31 #include "BESDapResponse.h"
32 
33 using namespace libdap;
34 
35 //class DMR;
36 
40 private:
41  DMR * _dmr;
42  //ConstraintEvaluator _ce; //FIXME Use Dap4 CE stuff
43 public:
44  BESDMRResponse(DMR *dmr) : BESDapResponse(), _dmr(dmr) { }
45  virtual ~BESDMRResponse() { delete _dmr ; }
46 
47  virtual void set_container(const std::string &cn);
48  virtual void clear_container();
49 
50  virtual void dump(std::ostream &strm) const;
51 
52  DMR *get_dmr() { return _dmr; }
53  void set_dmr(DMR *dmr) { _dmr = dmr; }
54 
55  //onstraintEvaluator &get_ce() { return _ce; } // FIXME too...
56 };
57 
58 #endif // I_BESDMRResponse
BESDapResponse
Represents an OPeNDAP DAP response object within the BES.
Definition: BESDapResponse.h:41
libdap
Definition: BESDapFunctionResponseCache.h:35
BESDMRResponse
Represents an OPeNDAP DMR DAP4 data object within the BES.
Definition: BESDMRResponse.h:39