libdap
Updated for version 3.17.0
|
00001 00002 // -*- mode: c++; c-basic-offset:4 -*- 00003 00004 // This file is part of libdap, A C++ implementation of the OPeNDAP Data 00005 // Access Protocol. 00006 00007 // Copyright (c) 2002,2003 OPeNDAP, Inc. 00008 // Author: James Gallagher <jgallagher@opendap.org> 00009 // 00010 // This library is free software; you can redistribute it and/or 00011 // modify it under the terms of the GNU Lesser General Public 00012 // License as published by the Free Software Foundation; either 00013 // version 2.1 of the License, or (at your option) any later version. 00014 // 00015 // This library is distributed in the hope that it will be useful, 00016 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 // Lesser General Public License for more details. 00019 // 00020 // You should have received a copy of the GNU Lesser General Public 00021 // License along with this library; if not, write to the Free Software 00022 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00023 // 00024 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112. 00025 00026 // (c) COPYRIGHT URI/MIT 1995-1999 00027 // Please read the full copyright statement in the file COPYRIGHT_URI. 00028 // 00029 // Authors: 00030 // jhrg,jimg James Gallagher <jgallagher@gso.uri.edu> 00031 00032 // Interface for the class Structure. A structure contains a single set of 00033 // variables, all at the same lexical level. Of course, a structure may 00034 // contain other structures... The variables contained in a structure are 00035 // stored by instances of this class in a SLList of BaseType pointers. 00036 // 00037 // jhrg 9/14/94 00038 00039 #ifndef _structure_h 00040 #define _structure_h 1 00041 00042 #include <vector> 00043 00044 #include "Constructor.h" 00045 00046 namespace libdap 00047 { 00048 00049 class DDS; 00050 class ConstraintEvaluator; 00051 class D4Group; 00052 00083 class Structure: public Constructor 00084 { 00085 private: 00086 protected: 00087 00088 public: 00089 Structure(const string &n); 00090 Structure(const string &n, const string &d); 00091 00092 Structure(const Structure &rhs); 00093 virtual ~Structure(); 00094 00095 Structure &operator=(const Structure &rhs); 00096 virtual BaseType *ptr_duplicate(); 00097 00098 virtual BaseType *transform_to_dap4(D4Group *root, Constructor *container); 00099 00100 virtual bool is_linear(); 00101 00102 virtual void set_leaf_sequence(int level = 1); 00103 00104 virtual void dump(ostream &strm) const ; 00105 }; 00106 00107 } // namespace libdap 00108 00109 #endif // _structure_h