12#ifndef POOL_FILEDESCRIPTOR_H
13#define POOL_FILEDESCRIPTOR_H 1
57 initFromFilename(m_FID);
64 MD5 checkSum((
unsigned char*)filename.c_str(), filename.size());
66 checkSum.
raw_digest((
unsigned char*)(&checkSumUuid));
68 uuid_unparse_upper(checkSumUuid, text);
73 const std::string&
PFN()
const {
return m_PFN; }
This file contains the class definition for the Guid class (migrated from POOL).
solar's public-domain MD5, wrapped for C++.
static bool isGuid(std::string_view) noexcept
void raw_digest(unsigned char *s) const
Definition of the DbConnection class.
FileID m_FID
File Identifier (UNIQUE).
FileDescriptor()
Standard Constructor.
const FileID & FID() const
Access to file identifier (READ).
void initFromFilename(const std::string &filename)
Generate new FID from the filename.
void setPFN(const std::string &val)
Access to physical file name (WRITE).
const DbConnection * dbc() const
DbConnection * dbc()
Access to file descriptor (READ).
DbConnection * m_DBC
Handle to the Database connection.
void setFID(const FileID &val)
Access to file identifier (WRITE).
std::string m_PFN
Physical file name.
FileDescriptor(const FileID &fid, const std::string &pfn)
Constructor with initializing arguments.
const std::string & PFN() const
Access to physical file name (READ).
void setDbc(DbConnection *val)
Access to file descriptor (WRITE).