ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
pool::FileDescriptor Class Reference

#include <POOLCore/FileDescriptor.h>

Collaboration diagram for pool::FileDescriptor:

Public Member Functions

 FileDescriptor ()
 Standard Constructor. More...
 
 FileDescriptor (const FileID &fid, const std::string &pfn)
 Constructor with initializing arguments. More...
 
const std::string & PFN () const
 Access to physical file name (READ) More...
 
void setPFN (const std::string &val)
 Access to physical file name (WRITE) More...
 
const FileIDFID () const
 Access to file identifier (READ) More...
 
void setFID (const FileID &val)
 Access to file identifier (WRITE) More...
 
ConnectionH dbc ()
 Access to file descriptor (READ) More...
 
ConstConnectionH dbc () const
 
void setDbc (ConnectionH val)
 Access to file descriptor (WRITE) More...
 

Private Attributes

FileID m_FID
 File Identifier (UNIQUE) More...
 
std::string m_PFN
 Physical file name. More...
 
ConnectionH m_DBC
 Handle to the Database connection. More...
 

Detailed Description

Description:

Definition of a small class capable to encapsulate a file in terms of file handle, of the generic Db data handle.

Author
M.Frank
Version
1.0

Definition at line 41 of file FileDescriptor.h.

Constructor & Destructor Documentation

◆ FileDescriptor() [1/2]

pool::FileDescriptor::FileDescriptor ( )
inline

Standard Constructor.

Definition at line 52 of file FileDescriptor.h.

52 : m_DBC(0) { }

◆ FileDescriptor() [2/2]

pool::FileDescriptor::FileDescriptor ( const FileID fid,
const std::string &  pfn 
)
inline

Constructor with initializing arguments.

Definition at line 54 of file FileDescriptor.h.

55  : m_FID(fid), m_PFN(pfn), m_DBC(0) {
56  if (!m_FID.empty() && Guid(m_FID).toString() != m_FID) {
57  MD5 checkSum((unsigned char*)m_FID.c_str(), m_FID.size());
58  uuid_t checkSumUuid;
59  checkSum.raw_digest((unsigned char*)(&checkSumUuid));
60  char text[37];
61  uuid_unparse_upper(checkSumUuid, text);
62  m_FID = text;
63  }
64  }

Member Function Documentation

◆ dbc() [1/2]

ConnectionH pool::FileDescriptor::dbc ( )
inline

Access to file descriptor (READ)

Definition at line 77 of file FileDescriptor.h.

77 { return m_DBC; }

◆ dbc() [2/2]

ConstConnectionH pool::FileDescriptor::dbc ( ) const
inline

Definition at line 78 of file FileDescriptor.h.

78 { return m_DBC; }

◆ FID()

const FileID& pool::FileDescriptor::FID ( ) const
inline

Access to file identifier (READ)

Definition at line 72 of file FileDescriptor.h.

72 { return m_FID; }

◆ PFN()

const std::string& pool::FileDescriptor::PFN ( ) const
inline

Access to physical file name (READ)

Definition at line 67 of file FileDescriptor.h.

67 { return m_PFN; }

◆ setDbc()

void pool::FileDescriptor::setDbc ( ConnectionH  val)
inline

Access to file descriptor (WRITE)

Definition at line 80 of file FileDescriptor.h.

80 { m_DBC = val; }

◆ setFID()

void pool::FileDescriptor::setFID ( const FileID val)
inline

Access to file identifier (WRITE)

Definition at line 74 of file FileDescriptor.h.

74 { m_FID = val; }

◆ setPFN()

void pool::FileDescriptor::setPFN ( const std::string &  val)
inline

Access to physical file name (WRITE)

Definition at line 69 of file FileDescriptor.h.

69 { m_PFN = val; }

Member Data Documentation

◆ m_DBC

ConnectionH pool::FileDescriptor::m_DBC
private

Handle to the Database connection.

Definition at line 48 of file FileDescriptor.h.

◆ m_FID

FileID pool::FileDescriptor::m_FID
private

File Identifier (UNIQUE)

Definition at line 44 of file FileDescriptor.h.

◆ m_PFN

std::string pool::FileDescriptor::m_PFN
private

Physical file name.

Definition at line 46 of file FileDescriptor.h.


The documentation for this class was generated from the following file:
pool::FileDescriptor::m_FID
FileID m_FID
File Identifier (UNIQUE)
Definition: FileDescriptor.h:44
Amg::toString
std::string toString(const Translation3D &translation, int precision=4)
GeoPrimitvesToStringConverter.
Definition: GeoPrimitivesToStringConverter.h:40
pool::FileDescriptor::m_DBC
ConnectionH m_DBC
Handle to the Database connection.
Definition: FileDescriptor.h:48
MD5
Definition: MD5.h:20
Guid
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Definition: Guid.h:20
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
pool::FileDescriptor::m_PFN
std::string m_PFN
Physical file name.
Definition: FileDescriptor.h:46
makeTransCanvas.text
text
Definition: makeTransCanvas.py:11