31 #include <libdap/ServerFunctionsList.h>
33 #include <BESRequestHandlerList.h>
34 #include <TheBESKeys.h>
37 #include "GeoGridFunction.h"
38 #include "GridFunction.h"
39 #include "LinearScaleFunction.h"
40 #include "VersionFunction.h"
41 #include "MakeArrayFunction.h"
42 #include "MakeMaskFunction.h"
43 #include "BindNameFunction.h"
44 #include "BindShapeFunction.h"
45 #include "TabularFunction.h"
46 #include "BBoxFunction.h"
47 #include "RoiFunction.h"
48 #include "BBoxUnionFunction.h"
49 #include "MaskArrayFunction.h"
50 #include "DilateArrayFunction.h"
51 #include "RangeFunction.h"
52 #include "BBoxCombFunction.h"
53 #include "ScaleGrid.h"
54 #include "TestFunction.h"
55 #include "IdentityFunction.h"
58 #include "stare/StareFunctions.h"
61 #include "DapFunctionsRequestHandler.h"
62 #include "DapFunctions.h"
70 void DapFunctions::initialize(
const string &modname)
72 BESDEBUG(
"dap_functions",
"Initializing DAP Functions:" << endl );
79 libdap::ServerFunctionsList::TheList()->add_function(
new GridFunction());
80 libdap::ServerFunctionsList::TheList()->add_function(
new GeoGridFunction());
81 libdap::ServerFunctionsList::TheList()->add_function(
new LinearScaleFunction());
83 libdap::ServerFunctionsList::TheList()->add_function(
new MakeArrayFunction());
84 libdap::ServerFunctionsList::TheList()->add_function(
new MakeMaskFunction());
85 libdap::ServerFunctionsList::TheList()->add_function(
new BindNameFunction());
86 libdap::ServerFunctionsList::TheList()->add_function(
new BindShapeFunction());
88 libdap::ServerFunctionsList::TheList()->add_function(
new VersionFunction());
90 libdap::ServerFunctionsList::TheList()->add_function(
new TabularFunction());
91 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxFunction());
92 libdap::ServerFunctionsList::TheList()->add_function(
new RoiFunction());
93 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxUnionFunction());
94 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxCombFunction());
96 libdap::ServerFunctionsList::TheList()->add_function(
new MaskArrayFunction());
97 libdap::ServerFunctionsList::TheList()->add_function(
new DilateArrayFunction());
99 libdap::ServerFunctionsList::TheList()->add_function(
new RangeFunction());
101 libdap::ServerFunctionsList::TheList()->add_function(
new ScaleArray());
102 libdap::ServerFunctionsList::TheList()->add_function(
new ScaleGrid());
103 libdap::ServerFunctionsList::TheList()->add_function(
new Scale3DArray());
105 libdap::ServerFunctionsList::TheList()->add_function(
new TestFunction());
107 libdap::ServerFunctionsList::TheList()->add_function(
new IdentityFunction());
110 libdap::ServerFunctionsList::TheList()->add_function(
new StareIntersectionFunction());
111 libdap::ServerFunctionsList::TheList()->add_function(
new StareCountFunction());
112 libdap::ServerFunctionsList::TheList()->add_function(
new StareSubsetFunction());
113 libdap::ServerFunctionsList::TheList()->add_function(
new StareSubsetArrayFunction());
114 libdap::ServerFunctionsList::TheList()->add_function(
new StareBoxFunction());
126 (void) CPLSetErrorHandler(CPLQuietErrorHandler);
128 BESDEBUG(
"dap_functions",
"Done initializing DAP Functions" << endl );
131 void DapFunctions::terminate(
const string &modname)
133 BESDEBUG(
"dap_functions",
"Removing DAP Functions." << endl );
147 strm << BESIndent::LMarg <<
"DapFunctions::dump - (" << (
void *)
this <<
")" << endl;
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
Represents a specific data type request handler.
A Request Handler for the DAP Functions module.
static TheBESKeys * TheKeys()
std::string read_string_key(const std::string &key, const std::string &default_value)
Read a string-valued key from the bes.conf file.
virtual void dump(std::ostream &strm) const
dumps information about this object