bes Updated for version 3.20.13
DmrppStructure.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/XMLWriter.h>
30
31#include <BESError.h>
32#include <BESDebug.h>
33
34#include "DmrppStructure.h"
35
36using namespace libdap;
37using namespace std;
38
39namespace dmrpp {
40
41DmrppStructure &
42DmrppStructure::operator=(const DmrppStructure &rhs)
43{
44 if (this == &rhs)
45 return *this;
46
47 dynamic_cast<Structure &>(*this) = rhs; // run Constructor=
48
49 dynamic_cast<DmrppCommon &>(*this) = rhs;
50
51 return *this;
52}
53
54void DmrppStructure::dump(ostream & strm) const
55{
56 strm << BESIndent::LMarg << "DmrppStructure::dump - (" << (void *) this << ")" << endl;
57 BESIndent::Indent();
58 DmrppCommon::dump(strm);
59 Structure::dump(strm);
60 strm << BESIndent::LMarg << "value: " << "----" << /*d_buf <<*/ endl;
61 BESIndent::UnIndent();
62}
63
64} // namespace dmrpp
65