OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
FONcMap.h
Go to the documentation of this file.
1 // FONcMap.h
2 
3 // This file is part of BES Netcdf File Out Module
4 
5 // Copyright (c) 2004,2005 University Corporation for Atmospheric Research
6 // Author: Patrick West <pwest@ucar.edu> and Jose Garcia <jgarcia@ucar.edu>
7 //
8 // This library is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU Lesser General Public
10 // License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 //
13 // This library is distributed in the hope that it will be useful,
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // Lesser General Public License for more details.
17 //
18 // You should have received a copy of the GNU Lesser General Public
19 // License along with this library; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 //
22 // You can contact University Corporation for Atmospheric Research at
23 // 3080 Center Green Drive, Boulder, CO 80301
24 
25 // (c) COPYRIGHT University Corporation for Atmospheric Research 2004-2005
26 // Please read the full copyright statement in the file COPYRIGHT_UCAR.
27 //
28 // Authors:
29 // pwest Patrick West <pwest@ucar.edu>
30 // jgarcia Jose Garcia <jgarcia@ucar.edu>
31 
32 #ifndef FONcMap_h_
33 #define FONcMap_h_ 1
34 
35 #include <BESObj.h>
36 
37 #include "FONcArray.h"
38 
46 class FONcMap : public BESObj
47 {
48 private:
49  FONcArray * _arr ;
50  bool _ingrid ;
51  vector<string> _shared_by ;
52  bool _defined ;
53  int _ref ;
54  FONcMap() : _arr( 0 ), _ingrid( false ),
55  _defined( false ), _ref( 1 ) {}
56 public:
57  FONcMap( FONcArray *a, bool ingrid = false ) ;
58  virtual ~FONcMap() ;
59 
60  virtual void incref() { _ref++ ; }
61  virtual void decref() ;
62 
63  virtual bool compare( Array *arr ) ;
64  virtual void add_grid( const string &name ) ;
65  virtual void clear_embedded() ;
66  virtual void define( int ncid ) ;
67  virtual void write( int ncid ) ;
68 
69  virtual void dump( ostream &strm ) const ;
70 } ;
71 
72 #endif // FONcMap_h_
73 
virtual void write(int ncid)
writes out the vallues of the map to the netcdf file by calling write on the FONcArray ...
Definition: FONcMap.cc:341
virtual void add_grid(const string &name)
Add the name of the grid as a grid that uses this map.
Definition: FONcMap.cc:306
virtual ~FONcMap()
Destructor that cleans up the map.
Definition: FONcMap.cc:62
A map of a DAP Grid with file out netcdf information included.
Definition: FONcMap.h:46
A DAP Array with file out netcdf information included.
Definition: FONcArray.h:50
virtual bool compare(Array *arr)
a method to compare two grid maps, or possible grid maps.
Definition: FONcMap.cc:99
virtual void incref()
Definition: FONcMap.h:60
virtual void decref()
decrements the reference count for this map
Definition: FONcMap.cc:79
Base object for bes objects.
Definition: BESObj.h:52
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
Definition: FONcMap.cc:354
virtual void define(int ncid)
define the map in the netcdf file by calling define on the FONcArray
Definition: FONcMap.cc:326
virtual void clear_embedded()
clear the embedded names for the FONcArray kept by this instance
Definition: FONcMap.cc:315