bes  Updated for version 3.20.5
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 
31 void BESDMRResponse::set_container(const string &/*cn*/)
32 {
33  // FIXME Add container support
34 #if 0
35  if( _dmr && get_explicit_containers() )
36  {
37  _dmr->container_name( cn );
38  }
39 #endif
40 }
41 
45 {
46 #if 0
47  if( _dmr )
48  {
49  _dmr->container_name( "" );
50  }
51 #endif
52 }
53 
61 void BESDMRResponse::dump(ostream &strm) const
62 {
63  strm << BESIndent::LMarg << "BESDMRResponse::dump - (" << (void *) this << ")" << endl;
64  BESIndent::Indent();
65  if (_dmr) {
66  strm << BESIndent::LMarg << "DMR:" << endl;
67  BESIndent::Indent();
68  BESIndent::SetIndent(BESIndent::GetIndent());
69  _dmr->dump(strm);
70  BESIndent::Reset();
71  BESIndent::UnIndent();
72  }
73  else {
74  strm << BESIndent::LMarg << "DMR: null" << endl;
75  }
76  BESIndent::UnIndent();
77 }
78 
virtual void set_container(const string &cn)
set the container in the DAP response object
virtual void dump(ostream &strm) const
dumps information about this object
virtual void clear_container()
clear the container in the DAP response object
bool get_explicit_containers() const
Should containers be explicitly represented in the DD* responses?