bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
DmrppD4Group.cc
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// This file is part of the BES
5
6// Copyright (c) 2016 OPeNDAP, Inc.
7// Author: James Gallagher <jgallagher@opendap.org>
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 "config.h"
26
27#include <string>
28
29//#include <libdap/D4Enum.h>
30//#include <libdap/D4EnumDefs.h>
31#include <libdap/D4Attributes.h>
32#include <libdap/D4Maps.h>
33#include <libdap/D4Group.h>
34#include <libdap/XMLWriter.h>
35
36#include <BESError.h>
37//#include <BESDebug.h>
38
39#include "DmrppD4Group.h"
40
41using namespace libdap;
42using namespace std;
43
44namespace dmrpp {
45
47DmrppD4Group::operator=(const DmrppD4Group &rhs)
48{
49 if (this == &rhs)
50 return *this;
51
52 dynamic_cast<D4Group &>(*this) = rhs; // run Constructor=
53
54 dynamic_cast<DmrppCommon &>(*this) = rhs;
55
56 return *this;
57}
58
59void
60DmrppD4Group::set_send_p(bool state)
61{
62 if (state && !get_attributes_loaded())
63 load_attributes(this);
64
65 D4Group::set_send_p(state);
66}
67
68void DmrppD4Group::dump(ostream & strm) const
69{
70 strm << BESIndent::LMarg << "DmrppD4Group::dump - (" << (void *) this << ")" << endl;
71 BESIndent::Indent();
72 DmrppCommon::dump(strm);
73 D4Group::dump(strm);
74 strm << BESIndent::LMarg << "value: " << "----" << /*d_buf <<*/ endl;
75 BESIndent::UnIndent();
76}
77
78} // namespace dmrpp
virtual void load_attributes(libdap::BaseType *btp)
Load the attribute information for this variable.
virtual bool get_attributes_loaded() const
Have the attributes been loaded?