bes
Updated for version 3.20.6
|
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;
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified 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
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file.
A Request Handler for the Fileout NetCDF request.
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
static void Register(const std::string &flagName)
register the specified debug flag
virtual void dump(std::ostream &strm) const
dumps information about this object for debugging purposes
virtual void terminate(const std::string &modname)
removes any registered callbacks or objects from the framework
virtual void initialize(const std::string &modname)
initialize the module by adding callbacks and registering objects with the framework