38#include "FONcBaseType.h"
39#include "FONcModule.h"
40#include "FONcTransmitter.h"
41#include "FONcRequestHandler.h"
42#include "BESRequestHandlerList.h"
44#include <BESReturnManager.h>
46#include <BESServiceRegistry.h>
47#include <BESDapNames.h>
49#include <TheBESKeys.h>
64 BESDEBUG(
"fonc",
"Initializing module " << modname << endl);
67 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
69 BESReturnManager::TheManager()->add_transmitter(RETURN_AS_NETCDF,
new FONcTransmitter());
71 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURN_AS_NETCDF);
73 BESReturnManager::TheManager()->add_transmitter(RETURN_AS_NETCDF4,
new FONcTransmitter());
75 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DATA_SERVICE, RETURN_AS_NETCDF4);
79 BESServiceRegistry::TheRegistry()->
add_format(OPENDAP_SERVICE, DAP4DATA_SERVICE, RETURN_AS_NETCDF4);
84 BESDEBUG(
"fonc",
"Done Initializing module " << modname << endl);
97 BESDEBUG(
"fonc",
"Cleaning module " << modname << endl);
99 BESReturnManager::TheManager()->del_transmitter(RETURN_AS_NETCDF);
101 BESReturnManager::TheManager()->del_transmitter(RETURN_AS_NETCDF4);
106 BESDEBUG(
"fonc",
"Done Cleaning module " << modname << endl);
117 strm << BESIndent::LMarg <<
"FONcModule::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 netcdf files.
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 callbacks and registering objects with the framework
virtual void terminate(const std::string &modname)
removes any registered callbacks or objects from the framework
A Request Handler for the Fileout NetCDF request.
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file.