16 #include <QStringList>
17 #include <QtCoreVersion>
24 int r,
int e,
unsigned t,
bool isvalid)
47 #if QTCORE_VERSION >= 0x050E00
48 QStringList filenameparts =
filename.split(
'.', Qt::SkipEmptyParts );
50 QStringList filenameparts =
filename.split(
'.', QString::SkipEmptyParts );
52 if (filenameparts.isEmpty())
59 for (
int i=filenameparts.count()-1;
i>=0;--
i) {
60 if (filenameparts.at(
i).count(
'_')>=2) {
68 #if QTCORE_VERSION >= 0x050E00
69 QStringList eventinfoparts = filenameparts.at(ieventinfo).split(
'_', Qt::SkipEmptyParts );
71 QStringList eventinfoparts = filenameparts.at(ieventinfo).split(
'_', QString::SkipEmptyParts );
73 if (eventinfoparts.count()<3)
76 int time = eventinfoparts.at(eventinfoparts.count()-1).toInt(&ok);
78 if (!ok||
time>2058991200)
81 unsigned long long eventnumber = eventinfoparts.at(eventinfoparts.count()-2).toInt(&ok);
84 int runnumber = eventinfoparts.at(eventinfoparts.count()-3).toInt(&ok);
98 int runnumber,
unsigned long long eventnumber,
unsigned time,
bool isvalid)
135 return !(*
this==
other);
207 +
", time="+
time().toString()