![]() |
ATLAS Offline Software
|
Free-standing helpers for operations on Gaudi's file catalog interfaces (Gaudi::IFileCatalog / Gaudi::IFileCatalogMgr) that have no direct equivalent there, so clients can use those interfaces directly instead of a wrapper class. More...
Functions | |
| void | getFirstPFN (const Gaudi::IFileCatalog &fc, const std::string &fid, std::string &pfn, std::string &tech) |
| Get the first PFN + filetype for the given FID. | |
| void | lookupFileByPFN (const Gaudi::IFileCatalog &fc, const std::string &pfn, std::string &fid, std::string &tech) |
| Get FID and filetype for a given PFN. | |
| void | registerPFN (Gaudi::IFileCatalog &fc, const std::string &pfn, const std::string &ftype, std::string &fid) |
| Register PFN, assign new FID if not given. Throws if the PFN is already registered. | |
| std::string | addCatalog (Gaudi::IFileCatalogMgr &mgr, const std::string &connect, bool forWriting=false) |
| Add new catalog, identified by name, to the existing ones, optionally as the write catalog. | |
Free-standing helpers for operations on Gaudi's file catalog interfaces (Gaudi::IFileCatalog / Gaudi::IFileCatalogMgr) that have no direct equivalent there, so clients can use those interfaces directly instead of a wrapper class.
| std::string FileCatalogUtils::addCatalog | ( | Gaudi::IFileCatalogMgr & | mgr, |
| const std::string & | connect, | ||
| bool | forWriting = false ) |
Add new catalog, identified by name, to the existing ones, optionally as the write catalog.
Returns the full connect string of the newly added catalog, or an empty string if it already existed and nothing was added.
Definition at line 55 of file FileCatalogUtils.cxx.
| void FileCatalogUtils::getFirstPFN | ( | const Gaudi::IFileCatalog & | fc, |
| const std::string & | fid, | ||
| std::string & | pfn, | ||
| std::string & | tech ) |
Get the first PFN + filetype for the given FID.
Definition at line 10 of file FileCatalogUtils.cxx.
| void FileCatalogUtils::lookupFileByPFN | ( | const Gaudi::IFileCatalog & | fc, |
| const std::string & | pfn, | ||
| std::string & | fid, | ||
| std::string & | tech ) |
Get FID and filetype for a given PFN.
Definition at line 26 of file FileCatalogUtils.cxx.
| void FileCatalogUtils::registerPFN | ( | Gaudi::IFileCatalog & | fc, |
| const std::string & | pfn, | ||
| const std::string & | ftype, | ||
| std::string & | fid ) |
Register PFN, assign new FID if not given. Throws if the PFN is already registered.
Definition at line 43 of file FileCatalogUtils.cxx.