bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
MeshDataVariable.h
1// -*- mode: c++; c-basic-offset:4 -*-
2
3// This file is part of libdap, A C++ implementation of the OPeNDAP Data
4// Access Protocol.
5
6// Copyright (c) 2002,2003,2011,2012 OPeNDAP, Inc.
7// Authors: Nathan Potter <ndp@opendap.org>
8// James Gallagher <jgallagher@opendap.org>
9// Scott Moe <smeest1@gmail.com>
10// Bill Howe <billhowe@cs.washington.edu>
11//
12// This library is free software; you can redistribute it and/or
13// modify it under the terms of the GNU Lesser General Public
14// License as published by the Free Software Foundation; either
15// version 2.1 of the License, or (at your option) any later version.
16//
17// This library is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20// Lesser General Public License for more details.
21//
22// You should have received a copy of the GNU Lesser General Public
23// License along with this library; if not, write to the Free Software
24// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25//
26// You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
27
28#ifndef _MeshDataVariable_h
29#define _MeshDataVariable_h 1
30
31#include "LocationType.h"
32
33namespace libdap {
34class Array;
35}
36
37namespace ugrid {
38
40
41private:
42
43 bool _initialized;
44
48 libdap::Array *meshDataVar;
49
50 /*
51 * Coordinate Dimension
52 */
53 libdap::Array::Dim_iter _coordinateDimension;
54
60 string meshName;
61
67 locationType myGridLocation;
68
84 //vector<string> *coordinateNames;
85 //vector<Array *> *coordinateArrays;
86public:
87
89
90 void setGridLocation(locationType loc)
91 {
92 myGridLocation = loc;
93 }
94 locationType getGridLocation() const
95 {
96 return myGridLocation;
97 }
98
99 void setMeshName(string mName)
100 {
101 meshName = mName;
102 }
103 string getMeshName() const
104 {
105 return meshName;
106 }
107
108 string getName() const
109 {
110 return meshDataVar->name();
111 }
112
113 libdap::Array *getDapArray() const
114 {
115 return meshDataVar;
116 }
117
118 libdap::Array::Dim_iter getLocationCoordinateDimension() const
119 {
120 return _coordinateDimension;
121 }
122
123 void setLocationCoordinateDimension(libdap::Array::Dim_iter cdim)
124 {
125 _coordinateDimension = cdim;
126 }
127
128 void init(libdap::Array *dapArray);
129};
130
131} // namespace ugrid
132
133#endif // _MeshDataVariable_h