bes  Updated for version 3.20.6
BESDMRResponse.cc
1 // BESDMRResponse.cc
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 #include "BESDMRResponse.h"
26 
27 using std::endl;
28 using std::string;
29 using std::ostream;
30 
35 void BESDMRResponse::set_container(const string &/*cn*/)
36 {
37  // FIXME Add container support
38 #if 0
39  if( _dmr && get_explicit_containers() )
40  {
41  _dmr->container_name( cn );
42  }
43 #endif
44 }
45 
49 {
50 #if 0
51  if( _dmr )
52  {
53  _dmr->container_name( "" );
54  }
55 #endif
56 }
57 
65 void BESDMRResponse::dump(ostream &strm) const
66 {
67  strm << BESIndent::LMarg << "BESDMRResponse::dump - (" << (void *) this << ")" << endl;
68  BESIndent::Indent();
69  if (_dmr) {
70  strm << BESIndent::LMarg << "DMR:" << endl;
71  BESIndent::Indent();
72  BESIndent::SetIndent(BESIndent::GetIndent());
73  _dmr->dump(strm);
74  BESIndent::Reset();
75  BESIndent::UnIndent();
76  }
77  else {
78  strm << BESIndent::LMarg << "DMR: null" << endl;
79  }
80  BESIndent::UnIndent();
81 }
82 
BESDMRResponse::dump
virtual void dump(std::ostream &strm) const
dumps information about this object
Definition: BESDMRResponse.cc:65
BESDapResponse::get_explicit_containers
bool get_explicit_containers() const
Should containers be explicitly represented in the DD* responses?
Definition: BESDapResponse.h:70
BESDMRResponse::set_container
virtual void set_container(const std::string &cn)
set the container in the DAP response object
Definition: BESDMRResponse.cc:35
BESDMRResponse::clear_container
virtual void clear_container()
clear the container in the DAP response object
Definition: BESDMRResponse.cc:48