添加主控单元过滤
This commit is contained in:
@ -60,7 +60,6 @@ void ReadThread::run() {
|
||||
QMap<QString, QString> temMap;
|
||||
int JD;
|
||||
QString temtime;
|
||||
QString temjd;
|
||||
matchDateTime = dateTimeRegex.match(line);
|
||||
if (matchDateTime.hasMatch()) {
|
||||
temtime = matchDateTime.captured(1);
|
||||
@ -68,15 +67,36 @@ void ReadThread::run() {
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
//匹配基带
|
||||
matchLogLevel = jdRegex.match(line);
|
||||
if (matchLogLevel.hasMatch()) {
|
||||
temjd = matchLogLevel.captured(1);
|
||||
temMap["基带"] = temjd;
|
||||
JD = temjd.toInt() - 1;
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
// //匹配基带
|
||||
// QString temjd;
|
||||
// matchLogLevel = jdRegex.match(line);//正则表达式匹配
|
||||
// if (matchLogLevel.hasMatch()) {//是否匹配
|
||||
// temjd = matchLogLevel.captured(1);//匹配之后取第一个匹配的值
|
||||
// temMap["基带"] = temjd;
|
||||
// JD = temjd.toInt() - 1;
|
||||
// } else {
|
||||
// continue;
|
||||
// }
|
||||
|
||||
//匹配基带
|
||||
if (line.contains("基带 1")){
|
||||
temMap["基带"] = "1";
|
||||
JD = 0;
|
||||
}else if(line.contains("基带 2")){
|
||||
temMap["基带"] = "2";
|
||||
JD = 1;
|
||||
}else if(line.contains("基带 3")){
|
||||
temMap["基带"] = "3";
|
||||
JD = 2;
|
||||
}else if(line.contains("基带 4")){
|
||||
temMap["基带"] = "4";
|
||||
JD = 3;
|
||||
}else if(line.contains("其他单元")){
|
||||
temMap["基带"] = "5";
|
||||
JD = 4;
|
||||
}else {
|
||||
continue;
|
||||
}
|
||||
|
||||
//获取开始时间
|
||||
if (isBeginTime) {
|
||||
|
Reference in New Issue
Block a user