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 );
104 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
108 BESDEBUG(
"fojson",
"Done Cleaning module " << modname << endl );
119 strm << BESIndent::LMarg <<
"FoJsonModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
Represents a specific data type request handler.
BESTransmitter class named "json" that transmits an OPeNDAP data object as a JSON file.
BESTransmitter class named "json" that transmits an OPeNDAP data object as a JSON file.
Module that allows for OPeNDAP Data objects to be returned as geotiff files.
virtual void terminate(const std::string &modname)
removes any registered callbacks or objects from the framework
virtual void dump(std::ostream &strm) const
dumps information about this object for debugging purposes
virtual void initialize(const std::string &modname)
initialize the module by adding call backs and registering objects with the framework
A Request Handler for the Fileout NetCDF request.