bes
Updated for version 3.20.6
|
38 #include "FoJsonModule.h"
39 #include "FoDapJsonTransmitter.h"
40 #include "FoInstanceJsonTransmitter.h"
41 #include "FoJsonRequestHandler.h"
42 #include "BESRequestHandlerList.h"
44 #include <BESReturnManager.h>
46 #include <BESServiceRegistry.h>
47 #include <BESDapNames.h>
49 #include <TheBESKeys.h>
52 #define RETURNAS_JSON "json"
53 #define RETURNAS_IJSON "ijson"
69 BESDEBUG(
"fojson",
"Initializing module " << modname << endl );
72 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
75 BESDEBUG(
"fojson",
" adding " << RETURNAS_JSON <<
" transmitter" << endl );
79 BESDEBUG(
"fojson",
" adding " << RETURNAS_IJSON <<
" transmitter" << endl );
84 BESDEBUG(
"fojson",
"Done Initializing module " << modname << endl );
97 BESDEBUG(
"fojson",
"Cleaning module " << modname << endl );
98 BESDEBUG(
"fojson",
" removing " << RETURNAS_JSON <<
" transmitter" << endl );
100 BESReturnManager::TheManager()->del_transmitter(RETURNAS_JSON);
102 BESDEBUG(
"fojson",
" removing " << modname <<
" request handler " << endl );
108 BESDEBUG(
"fojson",
"Done Cleaning module " << modname << endl );
119 strm << BESIndent::LMarg <<
"FoJsonModule::dump - (" << (
void *)
this <<
")" << endl;
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
virtual void initialize(const std::string &modname)
initialize the module by adding call backs and registering objects with the framework
BESTransmitter class named "json" that transmits an OPeNDAP data object as a JSON file.
virtual void dump(std::ostream &strm) const
dumps information about this object for debugging purposes
Module that allows for OPeNDAP Data objects to be returned as geotiff files.
virtual bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
static void Register(const std::string &flagName)
register the specified debug flag
A Request Handler for the Fileout NetCDF request.
virtual void terminate(const std::string &modname)
removes any registered callbacks or objects from the framework
BESTransmitter class named "json" that transmits an OPeNDAP data object as a JSON file.