ATLAS Offline Software
Static Public Member Functions | List of all members
VP1MD5Sum::Imp Class Reference
Collaboration diagram for VP1MD5Sum::Imp:

Static Public Member Functions

static bool fileok (const QString &filename)
 
static QByteArray actualMd5Sum (const QString &filename, bool &ok)
 

Detailed Description

Definition at line 21 of file VP1MD5Sum.cxx.

Member Function Documentation

◆ actualMd5Sum()

QByteArray VP1MD5Sum::Imp::actualMd5Sum ( const QString &  filename,
bool &  ok 
)
static

Definition at line 60 of file VP1MD5Sum.cxx.

61 {
62  ok = false;
63  QFile file(filename);
64  QCryptographicHash md5Hash(QCryptographicHash::Md5);
65 
66  if (file.open(QIODevice::ReadOnly | QIODevice::Unbuffered)) {
67  ok = true;
68  while (!file.atEnd())
69  md5Hash.addData(file.read(10485760));
70  }
71  file.close();
72  return md5Hash.result();
73 }

◆ fileok()

bool VP1MD5Sum::Imp::fileok ( const QString &  filename)
static

Definition at line 53 of file VP1MD5Sum.cxx.

54 {
55  QFileInfo fi(filename);
56  return fi.exists() && fi.isReadable();
57 }

The documentation for this class was generated from the following file:
file
TFile * file
Definition: tile_monitor.h:29
CaloCellTimeCorrFiller.filename
filename
Definition: CaloCellTimeCorrFiller.py:24
checkFileSG.fi
fi
Definition: checkFileSG.py:65