bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
NCGrid.h
1
2// -*- mode: c++; c-basic-offset:4 -*-
3
4// This file is part of nc_handler, a data handler for the OPeNDAP data
5// server.
6
7// Copyright (c) 2002,2003 OPeNDAP, Inc.
8// Author: James Gallagher <jgallagher@opendap.org>
9//
10// This is free software; you can redistribute it and/or modify it under the
11// terms of the GNU Lesser General Public License as published by the Free
12// Software Foundation; either version 2.1 of the License, or (at your
13// option) any later version.
14//
15// This software is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
17// or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18// License for more details.
19//
20// You should have received a copy of the GNU Lesser General Public
21// License along with this library; if not, write to the Free Software
22// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23//
24// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
25
26
27// (c) COPYRIGHT URI/MIT 1994-1996
28// Please read the full copyright statement in the file COPYRIGHT.
29//
30// Authors:
31// reza Reza Nekovei (reza@intcomm.net)
32
33// netCDF sub-class implementation for NCByte,...NCGrid.
34// The files are patterned after the subcalssing examples
35// Test<type>.c,h files.
36//
37// ReZa 1/12/95
38
39#ifndef _ncgrid_h
40#define _ncgrid_h 1
41
42#include <libdap/Grid.h>
43
44using namespace libdap ;
45
46class NCGrid: public Grid {
47
48public:
49 NCGrid(const string &n, const string &d);
50 NCGrid(const NCGrid &rhs);
51 virtual ~NCGrid();
52
53 NCGrid &operator=(const NCGrid &rhs);
54 virtual BaseType *ptr_duplicate();
55
56 virtual bool read();
57
58 virtual void transfer_attributes(AttrTable *at);
59};
60
61/*
62 * $Log: NCGrid.h,v $
63 * Revision 1.9 2005/04/19 23:16:18 jimg
64 * Removed client side parts; the client library is now in libnc-dap.
65 *
66 * Revision 1.8 2005/02/26 00:43:20 jimg
67 * Check point: This version of the CL can now translate strings from the
68 * server into char arrays. This is controlled by two things: First a
69 * compile-time directive STRING_AS_ARRAY can be used to remove/include
70 * this feature. When included in the code, only Strings associated with
71 * variables created by the translation process will be turned into char
72 * arrays. Other String variables are assumed to be single character strings
73 * (although there may be a bug with the way these are handled, see
74 * NCAccess::extract_values()).
75 *
76 * Revision 1.7 2005/01/26 23:25:51 jimg
77 * Implemented a fix for Sequence access by row number when talking to a
78 * 3.4 or earlier server (which contains a bug in is_end_of_rows()).
79 *
80 * Revision 1.6 2004/09/08 22:08:22 jimg
81 * More Massive changes: Code moved from the files that clone the netCDF
82 * function calls into NCConnect, NCAccess or nc_util.cc. Much of the
83 * translation functions are now methods. The netCDF type classes now
84 * inherit from NCAccess in addition to the DAP type classes.
85 *
86 * Revision 1.5 2003/12/08 18:06:37 edavis
87 * Merge release-3-4 into trunk
88 *
89 * Revision 1.4 2003/09/25 23:09:36 jimg
90 * Meerged from 3.4.1.
91 *
92 * Revision 1.3.4.1 2003/06/24 11:36:32 rmorris
93 * Removed #pragma interface directives for the OS X.
94 *
95 * Revision 1.3 2003/01/28 07:08:24 jimg
96 * Merged with release-3-2-8.
97 *
98 * Revision 1.2.4.1 2002/12/18 23:40:33 pwest
99 * gcc3.2 compile corrections, mainly regarding using statements. Also,
100 * problems with multi line string literatls.
101 *
102 * Revision 1.2 2000/10/06 01:22:02 jimg
103 * Moved the CVS Log entries to the ends of files.
104 * Modified the read() methods to match the new definition in the dap library.
105 * Added exception handlers in various places to catch exceptions thrown
106 * by the dap library.
107 *
108 * Revision 1.1 1999/07/28 00:22:43 jimg
109 * Added
110 *
111 * Revision 1.4 1999/05/07 23:45:32 jimg
112 * String --> string fixes
113 *
114 * Revision 1.3 1996/09/17 17:06:31 jimg
115 * Merge the release-2-0 tagged files (which were off on a branch) back into
116 * the trunk revision.
117 *
118 * Revision 1.2.4.2 1996/07/10 21:44:10 jimg
119 * Changes for version 2.06. These fixed lingering problems from the migration
120 * from version 1.x to version 2.x.
121 * Removed some (but not all) warning generated with gcc's -Wall option.
122 *
123 * Revision 1.2.4.1 1996/06/25 22:04:32 jimg
124 * Version 2.0 from Reza.
125 *
126 * Revision 1.2 1995/03/16 16:56:35 reza
127 * Updated for the new DAP. All the read_val mfunc. and their memory management
128 * are now moved to their parent class.
129 * Data transfers are now in binary while DAS and DDS are still sent in ASCII.
130 *
131 * Revision 1.1 1995/02/10 04:57:32 reza
132 * Added read and read_val functions.
133 */
134
135#endif
136
137
138
139
140
virtual void transfer_attributes(AttrTable *at)
Definition NCGrid.cc:119