33#include "FONgModule.h"
34#include "GeoTiffTransmitter.h"
35#include "JPEG2000Transmitter.h"
36#include "FONgRequestHandler.h"
37#include "BESRequestHandlerList.h"
39#include <BESReturnManager.h>
41#include <BESServiceRegistry.h>
42#include <BESDapNames.h>
44#include <TheBESKeys.h>
47#define RETURNAS_GEOTIFF "geotiff"
48#define RETURNAS_JPEG2000 "jpeg2000"
65 BESDEBUG(
"fong",
"Initializing module " << modname << endl );
68 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
70 BESDEBUG(
"fong",
" adding " << RETURNAS_GEOTIFF <<
" transmitter" << endl );
71 BESReturnManager::TheManager()->add_transmitter(RETURNAS_GEOTIFF,
new GeoTiffTransmitter());
74 BESDEBUG(
"fong",
" adding " << RETURNAS_JPEG2000 <<
" transmitter" << endl );
75 BESReturnManager::TheManager()->add_transmitter(RETURNAS_JPEG2000,
new JPEG2000Transmitter());
78 BESDEBUG(
"fong",
" adding geotiff service to dap" << endl );
79 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_GEOTIFF);
82 BESDEBUG(
"fong",
" adding jpeg2000 service to dap" << endl );
83 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_JPEG2000);
87 BESDEBUG(
"fong",
"Done Initializing module " << modname << endl );
100 BESDEBUG(
"fong",
"Cleaning module " << modname << endl );
101 BESDEBUG(
"fong",
" removing " << RETURNAS_GEOTIFF <<
" transmitter" << endl );
103 BESReturnManager::TheManager()->del_transmitter(RETURNAS_GEOTIFF);
106 BESDEBUG(
"fong",
" removing " << RETURNAS_JPEG2000 <<
" transmitter" << endl );
107 BESReturnManager::TheManager()->del_transmitter(RETURNAS_JPEG2000);
110 BESDEBUG(
"fong",
" removing " << modname <<
" request handler " << endl );
116 BESDEBUG(
"fong",
"Done Cleaning module " << modname << endl );
127 strm << BESIndent::LMarg <<
"FONgModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
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.
virtual void add_format(const std::string &service, const std::string &cmd, const std::string &format)
add a format response to a command of a service
Module that allows for OPeNDAP Data objects to be returned as geotiff files.
virtual void initialize(const std::string &modname)
initialize the module by adding call backs and registering objects with the framework
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
A Request Handler for the Fileout GDAL request.
BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.
BESTransmitter class named "geotiff" that transmits an OPeNDAP data object as a geotiff file.