OPeNDAP Hyrax Back End Server (BES)  Updated for version 3.8.3
DapFunctions.cc
Go to the documentation of this file.
1 // DapFunctions.cc
2 
3 // This file is part of bes, A C++ back-end server implementation framework
4 // for the OPeNDAP Data Access Protocol.
5 
6 // Copyright (c) 2013 OPeNDAP, Inc.
7 // Author: James Gallagher <jgallagher@opendap.org>
8 //
9 // This library is free software; you can redistribute it and/or
10 // modify it under the terms of the GNU Lesser General Public
11 // License as published by the Free Software Foundation; either
12 // version 2.1 of the License, or (at your option) any later version.
13 //
14 // This library is distributed in the hope that it will be useful,
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 // Lesser General Public License for more details.
18 //
19 // You should have received a copy of the GNU Lesser General Public
20 // License along with this library; if not, write to the Free Software
21 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 //
23 // You can contact OPeNDAP, Inc. at PO Box 112, Saunderstown, RI. 02874-0112.
24 
25 #include "config.h"
26 
27 #include <iostream>
28 
29 using std::endl;
30 
31 #include <ServerFunctionsList.h>
32 #include <BESDebug.h>
33 
34 #include "GeoGridFunction.h"
35 #include "GridFunction.h"
36 #include "LinearScaleFunction.h"
37 #include "VersionFunction.h"
38 #include "MakeArrayFunction.h"
39 #include "BindNameFunction.h"
40 #include "BindShapeFunction.h"
41 #include "TabularFunction.h"
42 #include "BBoxFunction.h"
43 #include "RoiFunction.h"
44 #include "BBoxUnionFunction.h"
45 
46 #include "DapFunctions.h"
47 
48 void DapFunctions::initialize(const string &)
49 {
50  BESDEBUG( "dap_functions", "Initializing DAP Functions:" << endl );
51 
52  libdap::ServerFunctionsList::TheList()->add_function(new GridFunction());
53  libdap::ServerFunctionsList::TheList()->add_function(new GeoGridFunction());
54  libdap::ServerFunctionsList::TheList()->add_function(new LinearScaleFunction());
55 
56  libdap::ServerFunctionsList::TheList()->add_function(new MakeArrayFunction());
57  libdap::ServerFunctionsList::TheList()->add_function(new BindNameFunction());
58  libdap::ServerFunctionsList::TheList()->add_function(new BindShapeFunction());
59 
60  libdap::ServerFunctionsList::TheList()->add_function(new VersionFunction());
61 
62  libdap::ServerFunctionsList::TheList()->add_function(new TabularFunction());
63  libdap::ServerFunctionsList::TheList()->add_function(new BBoxFunction());
64  libdap::ServerFunctionsList::TheList()->add_function(new RoiFunction());
65  libdap::ServerFunctionsList::TheList()->add_function(new BBoxUnionFunction());
66 
67  BESDEBUG( "dap_functions", "Done initializing DAP Functions" << endl );
68 }
69 
70 void DapFunctions::terminate(const string &)
71 {
72  BESDEBUG( "dap_functions", "Removing DAP Functions (this does nothing)." << endl );
73 }
74 
81 void DapFunctions::dump(ostream &strm) const
82 {
83  strm << BESIndent::LMarg << "DapFunctions::dump - (" << (void *) this << ")" << endl;
84 }
85 
86 extern "C" {
88 {
89  return new DapFunctions;
90 }
91 }
92 
The LinearScaleFunction class encapsulates the linear_scale function 'function_linear_scale' along wi...
virtual void dump(ostream &strm) const
dumps information about this object
Definition: DapFunctions.cc:81
The LinearScaleFunction class encapsulates the array builder function 'function_make_array' along wit...
virtual void initialize(const string &modname)
Definition: DapFunctions.cc:48
static ostream & LMarg(ostream &strm)
Definition: BESIndent.cc:73
virtual void terminate(const string &modname)
Definition: DapFunctions.cc:70
The LinearScaleFunction class encapsulates the linear_scale function 'function_linear_scale' along wi...
#define BESDEBUG(x, y)
macro used to send debug information to the debug stream
Definition: BESDebug.h:64
BESAbstractModule * maker()
Definition: DapFunctions.cc:87