33 #include "GDALModule.h" 35 #include <BESRequestHandlerList.h> 36 #include "GDALRequestHandler.h" 37 #include <BESDapService.h> 38 #include <BESContainerStorageList.h> 39 #include <BESFileContainerStorage.h> 40 #include <BESCatalogDirectory.h> 41 #include <BESCatalogList.h> 44 #define GDAL_CATALOG "catalog" 46 void GDALModule::initialize(
const string & modname)
48 BESDEBUG(
"gdal",
"Initializing GDAL module " << modname << endl);
51 BESRequestHandlerList::TheList()->
add_handler(modname, handler);
59 if (!BESContainerStorageList::TheList()->ref_persistence(GDAL_CATALOG)) {
66 BESDEBUG(
"gdal",
"Done Initializing GDAL module " << modname << endl);
69 void GDALModule::terminate(
const string & modname)
71 BESDEBUG(
"gdal",
"Cleaning GDAL module " << modname << endl);
79 BESDEBUG(
"gdal",
"Done Cleaning GDAL module " << modname << endl);
90 strm << BESIndent::LMarg <<
"GDALModule::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_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.
virtual void dump(ostream &strm) const
dumps information about this object
Represents a specific data type request handler.
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