39#include "FONcBaseType.h"
40#include "FONcModule.h"
41#include "FONcTransmitter.h"
42#include "FONcRequestHandler.h"
43#include "BESRequestHandlerList.h"
45#include <BESReturnManager.h>
47#include <BESServiceRegistry.h>
48#include <BESDapNames.h>
50#include <TheBESKeys.h>
65 BESDEBUG(
"fonc",
"Initializing module " << modname << endl);
68 BESRequestHandlerList::TheList()->add_handler(modname, handler);
70 BESReturnManager::TheManager()->add_transmitter(FONC_RETURN_AS_NETCDF3,
new FONcTransmitter());
72 BESServiceRegistry::TheRegistry()->add_format(OPENDAP_SERVICE, DATA_SERVICE, FONC_RETURN_AS_NETCDF3);
74 BESReturnManager::TheManager()->add_transmitter(FONC_RETURN_AS_NETCDF4,
new FONcTransmitter());
76 BESServiceRegistry::TheRegistry()->add_format(OPENDAP_SERVICE, DATA_SERVICE, FONC_RETURN_AS_NETCDF4);
80 BESServiceRegistry::TheRegistry()->add_format(OPENDAP_SERVICE, DAP4DATA_SERVICE, FONC_RETURN_AS_NETCDF4);
85 BESDEBUG(
"fonc",
"Done Initializing module " << modname << endl);
98 BESDEBUG(
"fonc",
"Cleaning module " << modname << endl);
100 BESReturnManager::TheManager()->del_transmitter(FONC_RETURN_AS_NETCDF3);
102 BESReturnManager::TheManager()->del_transmitter(FONC_RETURN_AS_NETCDF4);
104 BESRequestHandler *rh = BESRequestHandlerList::TheList()->remove_handler(modname);
107 BESDEBUG(
"fonc",
"Done Cleaning module " << modname << endl);
118 strm << BESIndent::LMarg <<
"FONcModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
Represents a specific data type request handler.
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.