|
ATLAS Offline Software
|
Go to the documentation of this file.
5 #ifndef INCLUDE_PERSISTENCYSVC_DATABASEREGISTRY_H
6 #define INCLUDE_PERSISTENCYSVC_DATABASEREGISTRY_H
14 namespace PersistencySvc {
17 class DatabaseHandler;
32 const std::string&
lfn );
62 std::map< std::string, DatabaseHandler* >
m_fidToDb;
63 std::map< std::string, DatabaseHandler* >
m_pfnToDb;
64 std::map< std::string, DatabaseHandler* >
m_lfnToDb;
73 #include "DatabaseRegistry.inl"
JetConstituentVector::iterator iterator
std::set< DatabaseHandler * >::const_iterator const_iterator
std::map< std::string, std::set< std::string > > m_fidToLfns
void deregisterDatabaseHandler(DatabaseHandler *dbHandler)
Deregisters a database.
std::map< std::string, DatabaseHandler * > m_pfnToDb
std::set< DatabaseHandler * > m_databases
iterator begin()
The begin iterators.
DatabaseHandler * lookupByFID(const std::string &fid)
Looks up a database by its file id.
DatabaseHandler * lookupByLFN(const std::string &lfn)
Looks up a database by its logical file name.
std::set< DatabaseHandler * >::iterator iterator
std::size_t size() const
The number of elements registered.
~DatabaseRegistry()
Destructor.
DatabaseHandler * lookupByPFN(const std::string &pfn)
Looks up a database by its physical file name.
void registerDatabaseHandler(DatabaseHandler *dbHandler, const std::string &lfn)
Registers a database with an LFN.
const_iterator begin() const
std::set< DatabaseHandler * >::iterator registerDbHandler(DatabaseHandler *dbHandler)
void registerDatabaseHandler(DatabaseHandler *dbHandler)
Registers a database.
DatabaseRegistry()
Constructor.
const_iterator end() const
std::map< std::string, DatabaseHandler * > m_fidToDb
std::map< std::string, DatabaseHandler * > m_lfnToDb
iterator end()
The end iterators.