71 typedef std::map<std::string, std::pair<std::string, FileMetaData>>
FileMap;
This class provides an interface to the file (metadata) catalog.
static FileCatalog & Instance()
Static method to get a reference to the FileCatalog instance.
virtual bool registerFile(const std::string &fileName, FileMetaData &metaData, const std::string &oldLFN="")
Register a file in the (local) file catalog.
std::map< std::string, std::pair< std::string, FileMetaData > > FileMap
Map with file catalog content.
virtual bool getMetaData(std::string &fileName, FileMetaData &metaData)
Get the metadata of a file with given (logical) file name.
virtual std::string getPhysicalFileName(const std::string &lfn)
Get the physical file name for the LFN.
std::string m_fileName
Name of the file catalog file.
bool writeCatalog(const FileMap &fileMap)
Write the file catalog to the local file.
FileCatalog()
Constructor: locate local database file.
bool readCatalog(FileMap &fileMap)
Read the file catalog from the local file.
Abstract base class for different kinds of events.