bes  Updated for version 3.20.5
BESContainer.cc
1 // BESContainer.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) 2004-2009 University Corporation for Atmospheric Research
7 // Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.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 University Corporation for Atmospheric Research at
24 // 3080 Center Green Drive, Boulder, CO 80301
25 
26 // (c) COPYRIGHT University Corporation for Atmospheric Research 2004-2005
27 // Please read the full copyright statement in the file COPYRIGHT_UCAR.
28 //
29 // Authors:
30 // pwest Patrick West <pwest@ucar.edu>
31 // jgarcia Jose Garcia <jgarcia@ucar.edu>
32 
33 #include "BESContainer.h"
34 
39 BESContainer::BESContainer(const BESContainer &copy_from) :
40  BESObj(copy_from), d_symbolic_name(copy_from.d_symbolic_name), d_real_name(copy_from.d_real_name),
41  d_relative_name(copy_from.d_relative_name), d_container_type(copy_from.d_container_type),
42  d_constraint(copy_from.d_constraint), d_dap4_constraint(copy_from.d_dap4_constraint),
43  d_dap4_function(copy_from.d_dap4_function), d_attributes(copy_from.d_attributes)
44 {
45 }
46 
52 {
53  copy_to.d_symbolic_name = d_symbolic_name;
54  copy_to.d_real_name = d_real_name;
55  copy_to.d_relative_name = d_relative_name;
56  copy_to.d_constraint = d_constraint;
57  copy_to.d_dap4_constraint = d_dap4_constraint;
58  copy_to.d_dap4_function = d_dap4_function;
59  copy_to.d_container_type = d_container_type;
60  copy_to.d_attributes = d_attributes;
61 }
62 
70 void BESContainer::dump(ostream &strm) const
71 {
72  strm << BESIndent::LMarg << "BESContainer::dump - (" << (void *) this << ")" << endl;
73  BESIndent::Indent();
74  strm << BESIndent::LMarg << "symbolic name: " << d_symbolic_name << endl;
75  strm << BESIndent::LMarg << "real name: " << d_real_name << endl;
76  strm << BESIndent::LMarg << "relative name: " << d_relative_name << endl;
77  strm << BESIndent::LMarg << "data type: " << d_container_type << endl;
78  strm << BESIndent::LMarg << "constraint: " << d_constraint << endl;
79  strm << BESIndent::LMarg << "dap4_constraint: " << d_dap4_constraint << endl;
80  strm << BESIndent::LMarg << "dap4_function: " << d_dap4_function << endl;
81  strm << BESIndent::LMarg << "attributes: " << d_attributes << endl;
82  BESIndent::UnIndent();
83 }
84 
virtual void dump(ostream &strm) const
dumps information about this object
Definition: BESContainer.cc:70
Base object for bes objects.
Definition: BESObj.h:51
void _duplicate(BESContainer &copy_to)
duplicate this instance into the passed container
Definition: BESContainer.cc:51
A container is something that holds data. E.G., a netcdf file or a database entry.
Definition: BESContainer.h:68