bes  Updated for version 3.20.6
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 
35 using std::endl;
36 using std::ostream;
37 
42 BESContainer::BESContainer(const BESContainer &copy_from) :
43  BESObj(copy_from), d_symbolic_name(copy_from.d_symbolic_name), d_real_name(copy_from.d_real_name),
44  d_relative_name(copy_from.d_relative_name), d_container_type(copy_from.d_container_type),
45  d_constraint(copy_from.d_constraint), d_dap4_constraint(copy_from.d_dap4_constraint),
46  d_dap4_function(copy_from.d_dap4_function), d_attributes(copy_from.d_attributes)
47 {
48 }
49 
55 {
56  copy_to.d_symbolic_name = d_symbolic_name;
57  copy_to.d_real_name = d_real_name;
58  copy_to.d_relative_name = d_relative_name;
59  copy_to.d_constraint = d_constraint;
60  copy_to.d_dap4_constraint = d_dap4_constraint;
61  copy_to.d_dap4_function = d_dap4_function;
62  copy_to.d_container_type = d_container_type;
63  copy_to.d_attributes = d_attributes;
64 }
65 
73 void BESContainer::dump(ostream &strm) const
74 {
75  strm << BESIndent::LMarg << "BESContainer::dump - (" << (void *) this << ")" << endl;
76  BESIndent::Indent();
77  strm << BESIndent::LMarg << "symbolic name: " << d_symbolic_name << endl;
78  strm << BESIndent::LMarg << "real name: " << d_real_name << endl;
79  strm << BESIndent::LMarg << "relative name: " << d_relative_name << endl;
80  strm << BESIndent::LMarg << "data type: " << d_container_type << endl;
81  strm << BESIndent::LMarg << "constraint: " << d_constraint << endl;
82  strm << BESIndent::LMarg << "dap4_constraint: " << d_dap4_constraint << endl;
83  strm << BESIndent::LMarg << "dap4_function: " << d_dap4_function << endl;
84  strm << BESIndent::LMarg << "attributes: " << d_attributes << endl;
85  BESIndent::UnIndent();
86 }
87 
BESObj
top level BES object to house generic methods
Definition: BESObj.h:49
BESContainer
A container is something that holds data. E.G., a netcdf file or a database entry.
Definition: BESContainer.h:65
BESContainer::_duplicate
void _duplicate(BESContainer &copy_to)
duplicate this instance into the passed container
Definition: BESContainer.cc:54
BESContainer::dump
virtual void dump(std::ostream &strm) const
dumps information about this object
Definition: BESContainer.cc:73