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 
42 #include "DapFunctions.h"
43 
44 void DapFunctions::initialize(const string &)
45 {
46  BESDEBUG( "dap_functions", "Initializing DAP Functions:" << endl );
47 
48  libdap::ServerFunctionsList::TheList()->add_function(new GridFunction());
49  libdap::ServerFunctionsList::TheList()->add_function(new GeoGridFunction());
50  libdap::ServerFunctionsList::TheList()->add_function(new LinearScaleFunction());
51 
52  libdap::ServerFunctionsList::TheList()->add_function(new MakeArrayFunction());
53  libdap::ServerFunctionsList::TheList()->add_function(new BindNameFunction());
54  libdap::ServerFunctionsList::TheList()->add_function(new BindShapeFunction());
55 
56  libdap::ServerFunctionsList::TheList()->add_function(new VersionFunction());
57 
58  BESDEBUG( "dap_functions", "Done initializing DAP Functions" << endl );
59 }
60 
61 void DapFunctions::terminate(const string &)
62 {
63  BESDEBUG( "dap_functions", "Removing DAP Modules (this does nothing)." << endl );
64 }
65 
72 void DapFunctions::dump(ostream &strm) const
73 {
74  strm << BESIndent::LMarg << "DapFunctions::dump - (" << (void *) this << ")" << endl;
75 }
76 
77 extern "C" {
79 {
80  return new DapFunctions;
81 }
82 }
83 
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:72
The LinearScaleFunction class encapsulates the linear_scale function 'function_linear_scale' along wi...
virtual void initialize(const string &modname)
Definition: DapFunctions.cc:44
static ostream & LMarg(ostream &strm)
Definition: BESIndent.cc:73
virtual void terminate(const string &modname)
Definition: DapFunctions.cc:61
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:78