bes  Updated for version 3.20.5
FONcTransform.h
1 // FONcTransform.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 FONcTransfrom_h_
33 #define FONcTransfrom_h_ 1
34 
35 #include <netcdf.h>
36 
37 #include <string>
38 #include <vector>
39 #include <map>
40 
41 using std::string ;
42 using std::vector ;
43 using std::map ;
44 
45 #include <DDS.h>
46 #include <Array.h>
47 
48 using namespace::libdap ;
49 
50 #include <BESObj.h>
51 #include <BESDataHandlerInterface.h>
52 
53 class FONcBaseType ;
54 
62 class FONcTransform: public BESObj {
63 private:
64  int _ncid;
65  DDS *_dds;
66  string _localfile;
67  string _returnAs;
68  vector<FONcBaseType *> _fonc_vars;
69 
70 public:
81  FONcTransform(DDS *dds, BESDataHandlerInterface &dhi, const string &localfile, const string &netcdfVersion = "netcdf");
82  virtual ~FONcTransform();
83  virtual void transform();
84 
85  virtual void dump(ostream &strm) const;
86 
87 };
88 
89 #endif // FONcTransfrom_h_
90 
FONcTransform::~FONcTransform
virtual ~FONcTransform()
Destructor.
Definition: FONcTransform.cc:101
FONcTransform::dump
virtual void dump(ostream &strm) const
dumps information about this transformation object for debugging purposes
Definition: FONcTransform.cc:233
FONcTransform::transform
virtual void transform()
Transforms each of the variables of the DataDDS to the NetCDF file.
Definition: FONcTransform.cc:127
BESObj
Base object for bes objects.
Definition: BESObj.h:51
FONcTransform::FONcTransform
FONcTransform(DDS *dds, BESDataHandlerInterface &dhi, const string &localfile, const string &netcdfVersion="netcdf")
Constructor that creates transformation object from the specified DataDDS object to the specified fil...
Definition: FONcTransform.cc:67
FONcBaseType
A DAP BaseType with file out netcdf information included.
Definition: FONcBaseType.h:58
FONcTransform
Transformation object that converts an OPeNDAP DataDDS to a netcdf file.
Definition: FONcTransform.h:62
BESDataHandlerInterface
Structure storing information used by the BES to handle the request.
Definition: BESDataHandlerInterface.h:60