bes  Updated for version 3.17.0
DapFunctions.cc
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 #include <ServerFunctionsList.h>
30 #include <BESDebug.h>
31 
32 #include "GeoGridFunction.h"
33 #include "GridFunction.h"
34 #include "LinearScaleFunction.h"
35 #include "VersionFunction.h"
36 #include "MakeArrayFunction.h"
37 #include "MakeMaskFunction.h"
38 #include "BindNameFunction.h"
39 #include "BindShapeFunction.h"
40 #include "TabularFunction.h"
41 #include "BBoxFunction.h"
42 #include "RoiFunction.h"
43 #include "BBoxUnionFunction.h"
44 #include "MaskArrayFunction.h"
45 #include "DilateArrayFunction.h"
46 
47 #include "DapFunctions.h"
48 
49 namespace functions {
50 
51 void DapFunctions::initialize(const string &)
52 {
53  BESDEBUG( "dap_functions", "Initializing DAP Functions:" << endl );
54 
55  libdap::ServerFunctionsList::TheList()->add_function(new GridFunction());
56  libdap::ServerFunctionsList::TheList()->add_function(new GeoGridFunction());
57  libdap::ServerFunctionsList::TheList()->add_function(new LinearScaleFunction());
58 
59  libdap::ServerFunctionsList::TheList()->add_function(new MakeArrayFunction());
60  libdap::ServerFunctionsList::TheList()->add_function(new MakeMaskFunction());
61  libdap::ServerFunctionsList::TheList()->add_function(new BindNameFunction());
62  libdap::ServerFunctionsList::TheList()->add_function(new BindShapeFunction());
63 
64  libdap::ServerFunctionsList::TheList()->add_function(new VersionFunction());
65 
66  libdap::ServerFunctionsList::TheList()->add_function(new TabularFunction());
67  libdap::ServerFunctionsList::TheList()->add_function(new BBoxFunction());
68  libdap::ServerFunctionsList::TheList()->add_function(new RoiFunction());
69  libdap::ServerFunctionsList::TheList()->add_function(new BBoxUnionFunction());
70 
71  libdap::ServerFunctionsList::TheList()->add_function(new MaskArrayFunction());
72  libdap::ServerFunctionsList::TheList()->add_function(new DilateArrayFunction());
73 
74  BESDEBUG( "dap_functions", "Done initializing DAP Functions" << endl );
75 }
76 
77 void DapFunctions::terminate(const string &)
78 {
79  BESDEBUG( "dap_functions", "Removing DAP Functions (this does nothing)." << endl );
80 }
81 
88 void DapFunctions::dump(ostream &strm) const
89 {
90  strm << BESIndent::LMarg << "DapFunctions::dump - (" << (void *) this << ")" << endl;
91 }
92 
93 extern "C" {
94 BESAbstractModule *maker()
95 {
96  return new DapFunctions;
97 }
98 }
99 
100 }
virtual void dump(std::ostream &strm) const
dumps information about this object
Definition: DapFunctions.cc:88