39 #include <BESRequestHandlerList.h> 40 #include <BESResponseHandlerList.h> 41 #include <BESResponseNames.h> 43 #include <BESContainerStorageList.h> 44 #include <BESFileContainerStorage.h> 45 #include <BESCatalogDirectory.h> 46 #include <BESCatalogList.h> 47 #include <BESDapService.h> 52 #include "CSVRequestHandler.h" 53 #include "CSVModule.h" 55 #define CSV_NAME "csv" 56 #define CSV_CATALOG "catalog" 58 void CSVModule::initialize(
const string &modname)
60 BESDEBUG(
"csv",
"Initializing CSV Module: " << modname << endl);
70 if (!BESContainerStorageList::TheList()->ref_persistence(CSV_CATALOG)) {
76 BESDEBUG(
"csv",
"Done Initializing CSV Handler: " << modname << endl);
79 void CSVModule::terminate(
const string &modname)
81 BESDEBUG(
"csv",
"Cleaning CSV Module: " << modname << endl);
90 BESDEBUG(
"csv",
"Done Cleaning CSV Module: " << modname << endl);
102 strm << BESIndent::LMarg <<
"CSVModule::dump - (" << (
void *)
this <<
")" << endl;
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
virtual bool add_catalog(BESCatalog *catalog)
adds the specified catalog to the list
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 bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
Catalogs from a directory structure.
Represents a specific data type request handler.
virtual void dump(ostream &strm) const
dump the contents of this object to the specified ostream
implementation of BESContainerStorage that represents a data within a catalog repository
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.
virtual BESRequestHandler * remove_handler(const std::string &handler_name)
remove and return the specified request handler
static void handle_dap_service(const string &handler)
static function to register a handler to handle the dap services