![]() |
ATLAS Offline Software
|
#include <DatabaseRegistry.h>
Public Types | |
| typedef std::set< DatabaseHandler * >::iterator | iterator |
| typedef std::set< DatabaseHandler * >::const_iterator | const_iterator |
Public Member Functions | |
| DatabaseRegistry () | |
| Constructor. | |
| ~DatabaseRegistry () | |
| Destructor. | |
| void | registerDatabaseHandler (DatabaseHandler *dbHandler) |
| Registers a database. | |
| void | registerDatabaseHandler (DatabaseHandler *dbHandler, const std::string &lfn) |
| Registers a database with an LFN. | |
| void | deregisterDatabaseHandler (DatabaseHandler *dbHandler) |
| Deregisters a database. | |
| DatabaseHandler * | lookupByFID (const std::string &fid) |
| Looks up a database by its file id. | |
| DatabaseHandler * | lookupByPFN (const std::string &pfn) |
| Looks up a database by its physical file name. | |
| DatabaseHandler * | lookupByLFN (const std::string &lfn) |
| Looks up a database by its logical file name. | |
| iterator | begin () |
| The begin iterators. | |
| const_iterator | begin () const |
| iterator | end () |
| The end iterators. | |
| const_iterator | end () const |
| std::size_t | size () const |
| The number of elements registered. | |
Private Member Functions | |
| std::set< DatabaseHandler * >::iterator | registerDbHandler (DatabaseHandler *dbHandler) |
Private Attributes | |
| std::set< DatabaseHandler * > | m_databases |
| std::map< std::string, DatabaseHandler * > | m_fidToDb |
| std::map< std::string, DatabaseHandler * > | m_pfnToDb |
| std::map< std::string, DatabaseHandler * > | m_lfnToDb |
| std::map< std::string, std::set< std::string > > | m_fidToLfns |
Definition at line 17 of file DatabaseRegistry.h.
| typedef std::set<DatabaseHandler*>::const_iterator pool::DatabaseRegistry::const_iterator |
Definition at line 45 of file DatabaseRegistry.h.
| typedef std::set<DatabaseHandler*>::iterator pool::DatabaseRegistry::iterator |
Definition at line 44 of file DatabaseRegistry.h.
|
explicit |
Constructor.
| pool::DatabaseRegistry::~DatabaseRegistry | ( | ) |
Destructor.
| iterator pool::DatabaseRegistry::begin | ( | ) |
The begin iterators.
| const_iterator pool::DatabaseRegistry::begin | ( | ) | const |
| void pool::DatabaseRegistry::deregisterDatabaseHandler | ( | DatabaseHandler * | dbHandler | ) |
Deregisters a database.
| iterator pool::DatabaseRegistry::end | ( | ) |
The end iterators.
| const_iterator pool::DatabaseRegistry::end | ( | ) | const |
| DatabaseHandler * pool::DatabaseRegistry::lookupByFID | ( | const std::string & | fid | ) |
Looks up a database by its file id.
| DatabaseHandler * pool::DatabaseRegistry::lookupByLFN | ( | const std::string & | lfn | ) |
Looks up a database by its logical file name.
| DatabaseHandler * pool::DatabaseRegistry::lookupByPFN | ( | const std::string & | pfn | ) |
Looks up a database by its physical file name.
| void pool::DatabaseRegistry::registerDatabaseHandler | ( | DatabaseHandler * | dbHandler | ) |
Registers a database.
| void pool::DatabaseRegistry::registerDatabaseHandler | ( | DatabaseHandler * | dbHandler, |
| const std::string & | lfn ) |
Registers a database with an LFN.
|
private |
| std::size_t pool::DatabaseRegistry::size | ( | ) | const |
The number of elements registered.
|
private |
Definition at line 59 of file DatabaseRegistry.h.
|
private |
Definition at line 60 of file DatabaseRegistry.h.
|
private |
Definition at line 63 of file DatabaseRegistry.h.
|
private |
Definition at line 62 of file DatabaseRegistry.h.
|
private |
Definition at line 61 of file DatabaseRegistry.h.