Structure.h
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of libdap, A C++ implementation of the OPeNDAP Data
// Access Protocol.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: James Gallagher <jgallagher@opendap.org>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License, or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
// (c) COPYRIGHT URI/MIT 1995-1999
// Please read the full copyright statement in the file COPYRIGHT_URI.
//
// Authors:
// jhrg,jimg James Gallagher <jgallagher@gso.uri.edu>
// Interface for the class Structure. A structure contains a single set of
// variables, all at the same lexical level. Of course, a structure may
// contain other structures... The variables contained in a structure are
// stored by instances of this class in a SLList of BaseType pointers.
//
// jhrg 9/14/94
#ifndef _structure_h
#define _structure_h 1
#include <vector>
#include "Constructor.h"
namespace libdap
{
class DDS;
class ConstraintEvaluator;
class D4Group;
class Structure: public Constructor
{
private:
protected:
public:
Structure(const string &n);
Structure(const string &n, const string &d);
Structure(const Structure &rhs);
virtual ~Structure();
Structure &operator=(const Structure &rhs);
virtual BaseType *ptr_duplicate();
virtual void transform_to_dap4(D4Group *root, Constructor *container);
virtual vector<BaseType *> *transform_to_dap2(AttrTable *parent_attr_table);
virtual bool is_linear();
virtual void set_leaf_sequence(int level = 1);
virtual void dump(ostream &strm) const ;
};
} // namespace libdap
#endif // _structure_h
libdap::Structure::transform_to_dap2
virtual vector< BaseType * > * transform_to_dap2(AttrTable *parent_attr_table)
DAP4 to DAP2 transform.
Definition: Structure.cc:180
libdap::Structure::ptr_duplicate
virtual BaseType * ptr_duplicate()
Definition: Structure.cc:138
libdap::Structure::transform_to_dap4
virtual void transform_to_dap4(D4Group *root, Constructor *container)
Definition: Structure.cc:153
libdap::Structure::dump
virtual void dump(ostream &strm) const
dumps information about this object
Definition: Structure.cc:704
libdap::D4Group
Definition: D4Group.h:43
libdap::Structure::Structure
Structure(const string &n)
Definition: Structure.cc:110
libdap
top level DAP object to house generic methods
Definition: AlarmHandler.h:35
libdap::AttrTable
Contains the attributes for a dataset.
Definition: AttrTable.h:142
libdap::Constructor
Definition: Constructor.h:43
libdap::Structure
Holds a structure (aggregate) type.
Definition: Structure.h:83
libdap::Structure::set_leaf_sequence
virtual void set_leaf_sequence(int level=1)
Traverse Structure, set Sequence leaf nodes.
Definition: Structure.cc:331
libdap::BaseType
The basic data type for the DODS DAP types.
Definition: BaseType.h:117
libdap::Structure::is_linear
virtual bool is_linear()
Check to see whether this variable can be printed simply.
Definition: Structure.cc:279