ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Database
AthenaPOOL
PoolSvc
PoolSvc
FileCatalogUtils.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef POOLSVC_FILECATALOGUTILS_H
6
#define POOLSVC_FILECATALOGUTILS_H
7
8
#include "GaudiUtils/IFileCatalog.h"
9
#include "GaudiUtils/IFileCatalogMgr.h"
10
11
#include <string>
12
16
namespace
FileCatalogUtils
{
17
19
void
getFirstPFN
(
const
Gaudi::IFileCatalog& fc,
20
const
std::string& fid, std::string& pfn, std::string& tech );
21
23
void
lookupFileByPFN
(
const
Gaudi::IFileCatalog& fc,
24
const
std::string& pfn, std::string& fid, std::string& tech );
25
27
void
registerPFN
( Gaudi::IFileCatalog& fc,
28
const
std::string& pfn,
const
std::string& ftype, std::string& fid );
29
33
std::string
addCatalog
( Gaudi::IFileCatalogMgr& mgr,
const
std::string& connect,
bool
forWriting =
false
);
34
35
}
36
37
#endif
FileCatalogUtils
Free-standing helpers for operations on Gaudi's file catalog interfaces (Gaudi::IFileCatalog / Gaudi:...
Definition
FileCatalogUtils.h:16
FileCatalogUtils::registerPFN
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.
Definition
FileCatalogUtils.cxx:44
FileCatalogUtils::addCatalog
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.
Definition
FileCatalogUtils.cxx:56
FileCatalogUtils::lookupFileByPFN
void lookupFileByPFN(const Gaudi::IFileCatalog &fc, const std::string &pfn, std::string &fid, std::string &tech)
Get FID and filetype for a given PFN.
Definition
FileCatalogUtils.cxx:27
FileCatalogUtils::getFirstPFN
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.
Definition
FileCatalogUtils.cxx:11
Generated on
for ATLAS Offline Software by
1.17.0