29#include <libdap/ServerFunctionsList.h>
31#include <BESRequestHandlerList.h>
32#include <TheBESKeys.h>
35#include "GeoGridFunction.h"
36#include "GridFunction.h"
37#include "LinearScaleFunction.h"
38#include "VersionFunction.h"
39#include "MakeArrayFunction.h"
40#include "MakeMaskFunction.h"
41#include "BindNameFunction.h"
42#include "BindShapeFunction.h"
43#include "TabularFunction.h"
44#include "BBoxFunction.h"
45#include "RoiFunction.h"
46#include "BBoxUnionFunction.h"
47#include "MaskArrayFunction.h"
48#include "DilateArrayFunction.h"
49#include "RangeFunction.h"
50#include "BBoxCombFunction.h"
51#include "TestFunction.h"
52#include "IdentityFunction.h"
53#include "DapFunctionsRequestHandler.h"
54#include "DapFunctions.h"
57#include "stare/StareFunctions.h"
73void DapFunctions::initialize(
const string &modname)
75 BESDEBUG(
"dap_functions",
"Initializing DAP Functions:" << endl );
80 BESRequestHandlerList::TheList()->add_handler(modname,
new DapFunctionsRequestHandler(modname));
82 libdap::ServerFunctionsList::TheList()->add_function(
new GridFunction());
83 libdap::ServerFunctionsList::TheList()->add_function(
new GeoGridFunction());
84 libdap::ServerFunctionsList::TheList()->add_function(
new LinearScaleFunction());
86 libdap::ServerFunctionsList::TheList()->add_function(
new MakeArrayFunction());
87 libdap::ServerFunctionsList::TheList()->add_function(
new MakeMaskFunction());
88 libdap::ServerFunctionsList::TheList()->add_function(
new BindNameFunction());
89 libdap::ServerFunctionsList::TheList()->add_function(
new BindShapeFunction());
91 libdap::ServerFunctionsList::TheList()->add_function(
new VersionFunction());
93 libdap::ServerFunctionsList::TheList()->add_function(
new TabularFunction());
94 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxFunction());
95 libdap::ServerFunctionsList::TheList()->add_function(
new RoiFunction());
96 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxUnionFunction());
97 libdap::ServerFunctionsList::TheList()->add_function(
new BBoxCombFunction());
99 libdap::ServerFunctionsList::TheList()->add_function(
new MaskArrayFunction());
100 libdap::ServerFunctionsList::TheList()->add_function(
new DilateArrayFunction());
102 libdap::ServerFunctionsList::TheList()->add_function(
new RangeFunction());
104 libdap::ServerFunctionsList::TheList()->add_function(
new TestFunction());
105 libdap::ServerFunctionsList::TheList()->add_function(
new IdentityFunction());
108 libdap::ServerFunctionsList::TheList()->add_function(
new StareIntersectionFunction());
109 libdap::ServerFunctionsList::TheList()->add_function(
new StareCountFunction());
110 libdap::ServerFunctionsList::TheList()->add_function(
new StareSubsetFunction());
111 libdap::ServerFunctionsList::TheList()->add_function(
new StareSubsetArrayFunction());
112 libdap::ServerFunctionsList::TheList()->add_function(
new StareBoxFunction());
121 libdap::ServerFunctionsList::TheList()->add_function(
new ScaleArray());
122 libdap::ServerFunctionsList::TheList()->add_function(
new ScaleGrid());
123 libdap::ServerFunctionsList::TheList()->add_function(
new Scale3DArray());
128 (void) CPLSetErrorHandler(CPLQuietErrorHandler);
131 BESDEBUG(
"dap_functions",
"Done initializing DAP Functions" << endl );
134void DapFunctions::terminate(
const string &modname)
136 BESDEBUG(
"dap_functions",
"Removing DAP Functions." << endl );
138 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
150 strm << BESIndent::LMarg <<
"DapFunctions::dump - (" << (
void *)
this <<
")" << endl;
static TheBESKeys * TheKeys()
Access to the singleton.
static 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