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( RETURNAS_NETCDF,
new FONcTransmitter());
71 BESServiceRegistry::TheRegistry()->
add_format( OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_NETCDF);
73 BESReturnManager::TheManager()->add_transmitter( RETURNAS_NETCDF4,
new FONcTransmitter());
75 BESServiceRegistry::TheRegistry()->
add_format( OPENDAP_SERVICE, DATA_SERVICE, RETURNAS_NETCDF4);
79 BESDEBUG(
"fonc",
"Done Initializing module " << modname << endl);
92 BESDEBUG(
"fonc",
"Cleaning module " << modname << endl);
94 BESReturnManager::TheManager()->del_transmitter( RETURNAS_NETCDF);
96 BESReturnManager::TheManager()->del_transmitter( RETURNAS_NETCDF4);
101 BESDEBUG(
"fonc",
"Done Cleaning module " << modname << endl);
112 strm << BESIndent::LMarg <<
"FONcModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
Module that allows for OPeNDAP Data objects to be returned as netcdf files.
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 initialize(const string &modname)
initialize the module by adding callbacks and registering objects with the framework
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file.
virtual void add_format(const string &service, const string &cmd, const string &format)
add a format response to a command of a service
virtual void terminate(const string &modname)
removes any registered callbacks or objects from the framework
Represents a specific data type request handler.
virtual void dump(ostream &strm) const
dumps information about this object for debugging purposes
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler