OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
MeshDataVariable.h
Go to the documentation of this file.
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 
33 using namespace std;
34 using namespace libdap;
35 using namespace ugrid;
36 
37 namespace libdap {
38  class Array;
39 }
40 
41 namespace ugrid {
42 
44 
45 private:
46 
47  bool _initialized;
48 
52  libdap::Array *meshDataVar;
53 
54  /*
55  * Coordinate Dimension
56  */
57  libdap::Array::Dim_iter _coordinateDimension;
58 
64  string meshName;
65 
66 
72  locationType myGridLocation;
73 
74 
75 
91  //vector<string> *coordinateNames;
92  //vector<Array *> *coordinateArrays;
93 public:
94 
95 
96 
98 
99  void setGridLocation(locationType loc){myGridLocation = loc;}
100  locationType getGridLocation(){return myGridLocation;}
101 
102  void setMeshName(string mName){meshName=mName;}
103  string getMeshName(){ return meshName;}
104 
105  string getName(){ return meshDataVar->name();}
106 
107  libdap::Array *getDapArray(){ return meshDataVar;}
108 
109  libdap::Array::Dim_iter getLocationCoordinateDimension(){
110  return _coordinateDimension;
111  }
112 
113  void setLocationCoordinateDimension(libdap::Array::Dim_iter cdim){
114  _coordinateDimension = cdim;
115  }
116 
117  void init(libdap::Array *dapArray);
118 
119 
120 };
121 
122 
123 }// namespace gf3
124 
125 #endif // _MeshDataVariable_h
libdap::Array::Dim_iter getLocationCoordinateDimension()
STL namespace.
locationType getGridLocation()
static class NCMLUtil overview
void setGridLocation(locationType loc)
libdap::Array * getDapArray()
locationType
Definition: LocationType.h:31
CURL * init(char *error_buffer)
Get's a new instance of CURL* and performs basic configuration of that instance.
Definition: curl_utils.cc:426
void setLocationCoordinateDimension(libdap::Array::Dim_iter cdim)
void setMeshName(string mName)