OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
FONcBaseType.h
Go to the documentation of this file.
1 // FONcBaseType.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 FONcBaseType_h_
33 #define FONcBaseType_h_ 1
34 
35 #include <netcdf.h>
36 
37 #include <BESObj.h>
38 #include <BaseType.h>
39 
40 using namespace libdap ;
41 
48 class FONcBaseType : public BESObj
49 {
50 protected:
51  int _varid ;
52  string _varname ;
53  string _orig_varname ;
54  vector<string> _embed ;
55  bool _defined ;
56  string _ncVersion ;
57 
59  : _varid( 0 ), _defined( false ) {}
60 public:
61  virtual ~FONcBaseType() {}
62 
63  virtual void convert( vector<string> embed ) ;
64  virtual void define( int ncid ) ;
65  virtual void write( int /*ncid*/ ) {}
66 
67  virtual string name() = 0 ;
68  virtual nc_type type() ;
69  virtual void clear_embedded() ;
70  virtual int varid() { return _varid ; }
71 
72  virtual void dump( ostream &strm ) const = 0 ;
73 
74  virtual void setVersion( string version ) ;
75  virtual bool isNetCDF4() ;
76 
77 } ;
78 
79 #endif // FONcBaseType_h_
80 
string _ncVersion
Definition: FONcBaseType.h:56
virtual int varid()
Definition: FONcBaseType.h:70
static class NCMLUtil overview
vector< string > _embed
Definition: FONcBaseType.h:54
Base object for bes objects.
Definition: BESObj.h:52
string _orig_varname
Definition: FONcBaseType.h:53
string _varname
Definition: FONcBaseType.h:52
virtual ~FONcBaseType()
Definition: FONcBaseType.h:61
virtual void write(int)
Definition: FONcBaseType.h:65
A DAP BaseType with file out netcdf information included.
Definition: FONcBaseType.h:48