OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
FONgBaseType.h
Go to the documentation of this file.
1 // FONgBaseType.h
2 
3 // This file is part of BES GDAL File Out Module
4 
5 // Copyright (c) 2012 OPeNDAP, Inc.
6 // Author: James Gallagher <jgallagher@opendap.org>
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 #ifndef FONgBaseType_h_
26 #define FONgBaseType_h_ 1
27 
28 class BESObj;
29 class FONgTransform;
30 class GDALDataset;
31 
38 class FONgBaseType: public BESObj {
39 protected:
40  string d_name;
41  libdap::Type d_type;
42 
43 public:
45 
46  virtual ~FONgBaseType() {}
47 
48  virtual string name() { return d_name; }
49  virtual void set_name(const string &n) { d_name = n; }
50 
51  virtual libdap::Type type() { return d_type; }
52  virtual void set_type(libdap::Type t) { d_type = t; }
53 
54  virtual void extract_coordinates(FONgTransform &t) = 0;
55 
57  virtual string get_projection(libdap::DDS *dds) = 0;
58 
60  virtual double *get_data() = 0;
61 
62  virtual void dump(ostream &) const {};
63 };
64 
65 #endif // FONgBaseType_h_
66 
libdap::Type d_type
Definition: FONgBaseType.h:41
virtual string get_projection(libdap::DDS *dds)=0
Get the GDAL/OGC WKT projection string.
virtual string name()
Definition: FONgBaseType.h:48
Base object for bes objects.
Definition: BESObj.h:52
virtual void dump(ostream &) const
Definition: FONgBaseType.h:62
virtual libdap::Type type()
Definition: FONgBaseType.h:51
string d_name
Definition: FONgBaseType.h:40
virtual void set_type(libdap::Type t)
Definition: FONgBaseType.h:52
A DAP BaseType with file out gdal information included.
Definition: FONgBaseType.h:38
virtual ~FONgBaseType()
Definition: FONgBaseType.h:46
Transformation object that converts an OPeNDAP DataDDS to a GeoTiff file.
Definition: FONgTransform.h:41
virtual void set_name(const string &n)
Definition: FONgBaseType.h:49
virtual double * get_data()=0
Get the data values for the band(s). Call must delete.
virtual void extract_coordinates(FONgTransform &t)=0