ATLAS Offline Software
Loading...
Searching...
No Matches
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
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
Free-standing helpers for operations on Gaudi's file catalog interfaces (Gaudi::IFileCatalog / Gaudi:...
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.
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 getFirstPFN(const Gaudi::IFileCatalog &fc, const std::string &fid, std::string &pfn, std::string &tech)
Get the first PFN + filetype for the given FID.