33 #ifndef BESCatalogList_h_ 34 #define BESCatalogList_h_ 1 47 #define BES_DEFAULT_CATALOG "catalog" 72 map<string, BESCatalog *> _catalogs ;
73 string _default_catalog ;
82 virtual bool ref_catalog(
const string &catalog_name ) ;
86 const string &catalog_or_info,
89 virtual void dump( ostream &strm )
const ;
94 #endif // BESCatalogList_h_ virtual BESCatalog * find_catalog(const string &catalog_name)
find the catalog in the list with the specified name
virtual bool add_catalog(BESCatalog *catalog)
adds the speciifed catalog to the list
virtual void dump(ostream &strm) const
dumps information about this object
Base object for bes objects.
informational response object
virtual bool ref_catalog(const string &catalog_name)
reference the specified catalog
List of all registered catalogs.
virtual bool deref_catalog(const string &catalog_name)
de-reference the specified catalog and remove from list if no longer referenced
virtual ~BESCatalogList()
list destructor deletes all registered catalogs
virtual void show_catalog(const string &container, const string &catalog_or_info, BESInfo *info)
show the contents of the catalog given the specified container
BESCatalogList()
construct a catalog list
abstract base class catalog object.
static BESCatalogList * TheCatalogList()
returns the singleton BESCatalogList instance
map< string, BESCatalog * >::iterator catalog_iter
map< string, BESCatalog * >::const_iterator catalog_citer