bes
Updated for version 3.20.6
|
39 #include "FitsModule.h"
40 #include <BESRequestHandlerList.h>
41 #include "FitsRequestHandler.h"
42 #include <BESDapService.h>
44 #include <BESContainerStorageList.h>
45 #include <BESFileContainerStorage.h>
46 #include <BESCatalogDirectory.h>
47 #include <BESCatalogList.h>
50 #define FITS_CATALOG "catalog"
52 void FitsModule::initialize(
const string &modname)
54 BESDEBUG(
"fits",
"Initializing Fits module " << modname << endl);
64 BESDEBUG(
"fits",
" catalog already exists, skipping" << endl);
67 if (!BESContainerStorageList::TheList()->ref_persistence(FITS_CATALOG)) {
72 BESDEBUG(
"fits",
" storage already exists, skipping" << endl);
77 BESDEBUG(
"fits",
"Done Initializing Fits module " << modname << endl);
80 void FitsModule::terminate(
const string &modname)
82 BESDEBUG(
"fits",
"Cleaning Fits module " << modname << endl);
91 BESDEBUG(
"fits",
"Done Cleaning Fits module " << modname << endl);
102 strm << BESIndent::LMarg <<
"FitsModule::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 bool deref_persistence(const std::string &persist_name)
dereference a persistent store in the list.
Catalogs from a directory structure.
virtual bool add_persistence(BESContainerStorage *p)
Add a persistent store to the list.
static BESCatalogList * TheCatalogList()
Get the singleton BESCatalogList instance.
implementation of BESContainerStorage that represents a data within a catalog repository
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(std::ostream &strm) const
dumps information about this object
static void Register(const std::string &flagName)
register the specified debug flag
virtual bool add_catalog(BESCatalog *catalog)
adds the specified catalog to the list
static void handle_dap_service(const std::string &handler)
static function to register a handler to handle the dap services