36 #include "FoJsonModule.h" 37 #include "FoDapJsonTransmitter.h" 38 #include "FoInstanceJsonTransmitter.h" 39 #include "FoJsonRequestHandler.h" 40 #include "BESRequestHandlerList.h" 42 #include <BESReturnManager.h> 44 #include <BESServiceRegistry.h> 45 #include <BESDapNames.h> 47 #include <TheBESKeys.h> 50 #define RETURNAS_JSON "json" 51 #define RETURNAS_IJSON "ijson" 67 BESDEBUG(
"fojson",
"Initializing module " << modname << endl );
70 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
73 BESDEBUG(
"fojson",
" adding " << RETURNAS_JSON <<
" transmitter" << endl );
77 BESDEBUG(
"fojson",
" adding " << RETURNAS_IJSON <<
" transmitter" << endl );
82 BESDEBUG(
"fojson",
"Done Initializing module " << modname << endl );
95 BESDEBUG(
"fojson",
"Cleaning module " << modname << endl );
96 BESDEBUG(
"fojson",
" removing " << RETURNAS_JSON <<
" transmitter" << endl );
98 BESReturnManager::TheManager()->del_transmitter(RETURNAS_JSON);
100 BESDEBUG(
"fojson",
" removing " << modname <<
" request handler " << endl );
106 BESDEBUG(
"fojson",
"Done Cleaning module " << modname << endl );
117 strm << BESIndent::LMarg <<
"FoJsonModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
virtual void initialize(const 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 bool add_handler(const std::string &handler_name, BESRequestHandler *handler)
add a request handler to the list of registered handlers for this server
A Request Handler for the Fileout NetCDF request.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
BESTransmitter class named "json" that transmits an OPeNDAP data object as a JSON file.
Represents a specific data type request handler.
virtual void terminate(const string &modname)
removes any registered callbacks or objects from the framework
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
Module that allows for OPeNDAP Data objects to be returned as geotiff files.