36 #include "BESAsciiModule.h" 40 #include "BESDapNames.h" 41 #include "BESResponseNames.h" 42 #include "BESResponseHandlerList.h" 43 #include "BESTransmitter.h" 44 #include "BESReturnManager.h" 45 #include "BESTransmitterNames.h" 49 #include "BESAsciiRequestHandler.h" 50 #include "BESRequestHandlerList.h" 52 #include "BESDapService.h" 54 #include "BESAsciiTransmit.h" 57 #define ASCII_RESPONSE "get.ascii" 58 #define ASCII_SERVICE "ascii" 59 #define ASCII_RESPONSE_STR "getAscii" 62 void BESAsciiModule::initialize(
const string &modname)
64 BESDEBUG(
"ascii",
"Initializing module " << modname << endl);
67 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
69 BESReturnManager::TheManager()->add_transmitter(ASCII_TRANSMITTER,
new BESAsciiTransmit());
70 BESReturnManager::TheManager()->add_transmitter(DAP4_CSV_TRANSMITTER,
new BESAsciiTransmit());
74 BESDEBUG(
"ascii",
"Done Initializing module " << modname << endl);
77 void BESAsciiModule::terminate(
const string &modname)
79 BESDEBUG(
"ascii",
"Cleaning module " << modname << endl);
81 BESReturnManager::TheManager()->del_transmitter(ASCII_TRANSMITTER);
82 BESReturnManager::TheManager()->del_transmitter(DAP4_CSV_TRANSMITTER);
88 BESDEBUG(
"ascii",
"Done Cleaning module " << modname << endl);
99 strm << BESIndent::LMarg <<
"BESAsciiModule::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 void dump(ostream &strm) const
dumps information about this object
Represents a specific data type request handler.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler