Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
@@ -165,7 +165,7 @@ int64_t LogViewField::getHighestValue() const
|
||||
return highest;
|
||||
}
|
||||
default:
|
||||
ERROR_LOG() << "Case not implemented";
|
||||
ERROR_LOG(m_logger) << "Case not implemented";
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@@ -193,7 +193,7 @@ int64_t LogViewField::getLowestValue() const
|
||||
return lowest;
|
||||
}
|
||||
default:
|
||||
ERROR_LOG() << "Case not implemented";
|
||||
ERROR_LOG(m_logger) << "Case not implemented";
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
@@ -203,16 +203,16 @@ int64_t LogViewField::getLowestValue() const
|
||||
|
||||
void LogViewField::dump(const QString &a_indent) const
|
||||
{
|
||||
INFO_LOG() << a_indent << "[";
|
||||
INFO_LOG() << a_indent << "Field[" << m_Name << "]: m_Kind=" << m_Kind << " m_Offset=" << m_Offset << " m_Size=" << m_Size << " m_MaxArraySize=" << m_MaxArraySize << " m_IsRightAligned=" << m_IsRightAligned << " m_IsDynamicArray=" << m_IsDynamicArray << " m_ToolTipText=" << m_ToolTipText;
|
||||
INFO_LOG(m_logger) << a_indent << "[";
|
||||
INFO_LOG(m_logger) << a_indent << "Field[" << m_Name << "]: m_Kind=" << m_Kind << " m_Offset=" << m_Offset << " m_Size=" << m_Size << " m_MaxArraySize=" << m_MaxArraySize << " m_IsRightAligned=" << m_IsRightAligned << " m_IsDynamicArray=" << m_IsDynamicArray << " m_ToolTipText=" << m_ToolTipText;
|
||||
|
||||
for (int i=0; i<m_ValueList.size(); i++)
|
||||
INFO_LOG() << a_indent << "m_Value[" << i << "]=" << m_ValueList[i];
|
||||
INFO_LOG(m_logger) << a_indent << "m_Value[" << i << "]=" << m_ValueList[i];
|
||||
|
||||
for (auto *c : m_Child)
|
||||
c->dump(a_indent + QLatin1Char(' '));
|
||||
|
||||
INFO_LOG() << a_indent << "]";
|
||||
INFO_LOG(m_logger) << a_indent << "]";
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -527,7 +527,7 @@ void LogViewGui::onReplayTimerTimeout()
|
||||
return;
|
||||
|
||||
uint64_t nextSendTime = (tele->getLogTimeMsec() - curSendTime);
|
||||
DEBUG_LOG() << "Next SendTime: " << nextSendTime
|
||||
DEBUG_LOG(m_logger) << "Next SendTime: " << nextSendTime
|
||||
<< ", telId: " << tele->getTelId()
|
||||
<< ", next row: " << m_currentReplayRow
|
||||
<< ", equipNo: " << tele->getParticipantId();
|
||||
@@ -545,7 +545,7 @@ void LogViewGui::loadSpecificationFiles()
|
||||
|
||||
QString defString = QCoreApplication::applicationDirPath() + QLatin1String("/training_area_telegrams.h");
|
||||
QString filename = settings.value(LogViewOptionDialog::P0_FILENAME, defString).toString();
|
||||
INFO_LOG() << "Load central-protocol spezification-file: " << filename.toStdString();
|
||||
INFO_LOG(m_logger) << "Load central-protocol spezification-file: " << filename.toStdString();
|
||||
if (!QFile::exists(filename))
|
||||
{
|
||||
QMessageBox::warning(this, tr("LogView"), tr("Die Spezifikations-Datei \'%1\' fuer Zentral-Telegramme existiert nicht!<br><br>Werde die Default-Datei verwenden...").arg(filename));
|
||||
@@ -556,7 +556,7 @@ void LogViewGui::loadSpecificationFiles()
|
||||
|
||||
defString = QCoreApplication::applicationDirPath() + QLatin1String("/zsksxd_tetraForLogView.x");
|
||||
filename = settings.value(LogViewOptionDialog::P5_FILENAME, defString).toString();
|
||||
INFO_LOG() << "Load tetra-protocol spezification-file: " << filename.toStdString();
|
||||
INFO_LOG(m_logger) << "Load tetra-protocol spezification-file: " << filename.toStdString();
|
||||
if (!QFile::exists(filename))
|
||||
{
|
||||
QMessageBox::warning(this, tr("LogView"), tr("Die Spezifikations-Datei \'%1\' fuer TETRA-Telegramme existiert nicht!<br><br>Werde die Default-Datei verwenden...").arg(filename));
|
||||
@@ -565,7 +565,7 @@ void LogViewGui::loadSpecificationFiles()
|
||||
|
||||
LogViewTelegram::tetraParser()->parseX_File(filename);
|
||||
|
||||
INFO_LOG() << "Browse telegram-log-file";
|
||||
INFO_LOG(m_logger) << "Browse telegram-log-file";
|
||||
newTelegramFile();
|
||||
}
|
||||
|
||||
@@ -635,7 +635,7 @@ void LogViewGui::updateLogfile()
|
||||
}
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
WARNING_LOG() << "Error: " << e.what();
|
||||
WARNING_LOG(m_logger) << "Error: " << e.what();
|
||||
|
||||
}
|
||||
}
|
||||
@@ -715,7 +715,7 @@ void LogViewGui::readTelegramsFromLogFile(const QString& a_fileName, const qint6
|
||||
|
||||
if (!telegram->isValid())
|
||||
{
|
||||
ERROR_LOG() << "Trying to read/parse unknown data from logfile '" << a_fileName
|
||||
ERROR_LOG(m_logger) << "Trying to read/parse unknown data from logfile '" << a_fileName
|
||||
<< "' at position " << telegramFile.pos() - (telegramLength + sizeof(lh));
|
||||
continue;
|
||||
}
|
||||
@@ -728,7 +728,7 @@ void LogViewGui::readTelegramsFromLogFile(const QString& a_fileName, const qint6
|
||||
else
|
||||
{
|
||||
QMessageBox::warning(this, tr("Falsche Version"), tr("LogViewer kann Telegramm-Logs der Version %1 nicht einlesen").arg(lh.m_Version));
|
||||
ERROR_LOG() << "Trying to read/parse unknown data from logfile '" << a_fileName
|
||||
ERROR_LOG(m_logger) << "Trying to read/parse unknown data from logfile '" << a_fileName
|
||||
<< "' at position " << telegramFile.pos() - sizeof(lh);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ void LogViewInjectionThread::tryToConnect()
|
||||
m_Timer->setInterval(3000);
|
||||
m_Timer->start();
|
||||
|
||||
INFO_LOG() << "Try to connect to injection-server of TETRA-If (" << m_Hostname << ":" << m_Port << ")";
|
||||
INFO_LOG(m_logger) << "Try to connect to injection-server of TETRA-If (" << m_Hostname << ":" << m_Port << ")";
|
||||
m_Socket->connectToHost(m_Hostname, m_Port);
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ void LogViewInjectionThread::tryToConnect()
|
||||
|
||||
void LogViewInjectionThread::doConnect()
|
||||
{
|
||||
INFO_LOG() << "LogView has successful connected to injection-server of TETRA-If";
|
||||
INFO_LOG(m_logger) << "LogView has successful connected to injection-server of TETRA-If";
|
||||
m_SendingPossible = true;
|
||||
m_Timer->stop();
|
||||
emit updateStatus(QLatin1String(":/image/GreenLamp.png"),
|
||||
@@ -114,7 +114,7 @@ void LogViewInjectionThread::doConnect()
|
||||
|
||||
void LogViewInjectionThread::doDisconnect()
|
||||
{
|
||||
INFO_LOG() << "LogView was disconnected from injection-server of TETRA-If";
|
||||
INFO_LOG(m_logger) << "LogView was disconnected from injection-server of TETRA-If";
|
||||
m_SendingPossible = false;
|
||||
emit updateStatus(QLatin1String(":/image/RedLamp.png"),
|
||||
tr("LogView ist nicht mehr mit TETRA-If-Injection-Server (%1:%2) verbunden").arg(m_Hostname).arg(m_Port));
|
||||
@@ -125,10 +125,10 @@ void LogViewInjectionThread::doDisconnect()
|
||||
|
||||
void LogViewInjectionThread::sendTelegram(LogViewTelegram* a_telegram, const bool a_doSendAsCentralTelegram)
|
||||
{
|
||||
INFO_LOG() << "inject " << (a_doSendAsCentralTelegram ? "central" : "Tetra") << " telegram";
|
||||
INFO_LOG(m_logger) << "inject " << (a_doSendAsCentralTelegram ? "central" : "Tetra") << " telegram";
|
||||
if (!m_Socket || m_Socket->state() != QAbstractSocket::ConnectedState)
|
||||
{
|
||||
ERROR_LOG() << "Try to write a telegramm but we are not connected";
|
||||
ERROR_LOG(m_logger) << "Try to write a telegramm but we are not connected";
|
||||
return;
|
||||
}
|
||||
N_CoPrtCnv::CoPrtCnvInjectionHeader injectionHeader;
|
||||
|
||||
@@ -617,7 +617,7 @@ void LogViewTelegram::resetOffset()
|
||||
m_ActOffset = START_OFFSET_CENTRAL;
|
||||
break;
|
||||
default:
|
||||
ERROR_LOG() << "resetOffset is only for Central-Protocol implemented";
|
||||
ERROR_LOG(m_logger) << "resetOffset is only for Central-Protocol implemented";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1000,7 +1000,7 @@ MemberInformation LogViewTelegram::memberFromStructInformation(const StructInfor
|
||||
|
||||
LogViewField* LogViewTelegram::getFieldTree(const QString& a_type, const QString& a_name, uint16_t a_arraySize, const LogViewXdrType* a_parentElement, const bool a_hasContent)
|
||||
{
|
||||
DEBUG_LOG() << "a_type=" << a_type << " a_name=" << a_name << " a_arraySize=" << a_arraySize;
|
||||
DEBUG_LOG(m_logger) << "a_type=" << a_type << " a_name=" << a_name << " a_arraySize=" << a_arraySize;
|
||||
const LogViewXdrElement* xdrElement = tetraParser()->getElement(a_type);
|
||||
if (!xdrElement)
|
||||
return nullptr;
|
||||
@@ -1038,7 +1038,7 @@ LogViewField* LogViewTelegram::getFieldTree(const QString& a_type, const QString
|
||||
int arraySize = child->getArraySize();
|
||||
if (0 == arraySize && !isScalar(child))
|
||||
{
|
||||
INFO_LOG() << "dyn. array of struc";
|
||||
INFO_LOG(m_logger) << "dyn. array of struc";
|
||||
arraySize = getDynArraySize(m_ActOffset);
|
||||
isDynArray = true;
|
||||
}
|
||||
@@ -1082,7 +1082,7 @@ LogViewField* LogViewTelegram::getFieldTree(const QString& a_type, const QString
|
||||
else
|
||||
{
|
||||
|
||||
INFO_LOG() << "typedef dynamisch";
|
||||
INFO_LOG(m_logger) << "typedef dynamisch";
|
||||
}
|
||||
maxArraySize = static_cast<const LogViewXdrType*>(xdrElement)->getMaxArraySize();
|
||||
while (xdrElement->getKind() != LogViewXdrElement::e_KindStandardType)
|
||||
@@ -1408,10 +1408,10 @@ LogViewField* LogViewTelegram::getContent(const LogViewXdrStandardType* a_standa
|
||||
const quint64 value = getUIntX(i*size+a_offset, size, byteOrder);
|
||||
if (8 == size) {
|
||||
field->addValue(QString::number(xdrToDouble(value)));
|
||||
INFO_LOG() << "value=" << xdrToDouble(value);
|
||||
INFO_LOG(m_logger) << "value=" << xdrToDouble(value);
|
||||
} else {
|
||||
field->addValue(QString::number(xdrToFloat(value)));
|
||||
INFO_LOG() << "value=" << xdrToFloat(value);
|
||||
INFO_LOG(m_logger) << "value=" << xdrToFloat(value);
|
||||
}
|
||||
}
|
||||
field->setIsRightAligned(true);
|
||||
@@ -1440,7 +1440,7 @@ LogViewField* LogViewTelegram::getContent(const LogViewXdrStandardType* a_standa
|
||||
break;
|
||||
|
||||
default:
|
||||
ERROR_LOG() << "ValueKind " << a_standardType->getValueKind() << " not implemented!";
|
||||
ERROR_LOG(m_logger) << "ValueKind " << a_standardType->getValueKind() << " not implemented!";
|
||||
break;
|
||||
}
|
||||
uint16_t sizeOfContent = arraySize * size;
|
||||
@@ -1612,7 +1612,7 @@ bool LogViewTelegram::isScalar(const LogViewXdrType* a_xdrType) const
|
||||
|
||||
|
||||
default:
|
||||
ERROR_LOG() << "name=" << xdrElement->getName().toStdString() << " kind=" << xdrElement->getKind() << " case not implemented!";
|
||||
ERROR_LOG(m_logger) << "name=" << xdrElement->getName().toStdString() << " kind=" << xdrElement->getKind() << " case not implemented!";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,7 +228,7 @@ void LogViewTelegramDialog::showTree(LogViewField *a_fieldTree, QGridLayout *a_b
|
||||
|
||||
void LogViewTelegramDialog::fillTelegram(LogViewTelegram *a_telegram)
|
||||
{
|
||||
INFO_LOG() << "******************************************";
|
||||
INFO_LOG(m_logger) << "******************************************";
|
||||
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ void LogViewTelegramDialog::fillTelegram(LogViewTelegram *a_telegram)
|
||||
{
|
||||
if (!ptr->isValid())
|
||||
{
|
||||
INFO_LOG() << ptr->field()->name() << " is invalid";
|
||||
INFO_LOG(m_logger) << ptr->field()->name() << " is invalid";
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -387,7 +387,7 @@ void LogViewTelegramDialog::showEditField(LogViewField *a_logViewField, QGridLay
|
||||
if (w)
|
||||
a_box->addWidget(w, a_box->rowCount() - 1, 1);
|
||||
else
|
||||
WARNING_LOG() << "Internal error - LogViewWidget is not derived from QWidget... !?";
|
||||
WARNING_LOG(m_logger) << "Internal error - LogViewWidget is not derived from QWidget... !?";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -299,12 +299,12 @@ void TelegramEdit::injectTelegram(const QSharedPointer<LogViewTelegram> &a_teleg
|
||||
{
|
||||
if (!isInjectionPossible())
|
||||
{
|
||||
WARNING_LOG() << "Try to inject a telegramm but the injection thread is not running";
|
||||
WARNING_LOG(m_logger) << "Try to inject a telegramm but the injection thread is not running";
|
||||
return;
|
||||
}
|
||||
if (a_telegram.isNull())
|
||||
{
|
||||
WARNING_LOG() << "Try to inject a telegramm but no telegramm selected";
|
||||
WARNING_LOG(m_logger) << "Try to inject a telegramm but no telegramm selected";
|
||||
return;
|
||||
}
|
||||
a_telegram->actualizeGpsTime();
|
||||
@@ -545,7 +545,7 @@ void TelegramEdit::loadTelegramList(bool checkAppend)
|
||||
stream >> waitTime >> name >> gpsFieldOffset >> telegramSize;
|
||||
if (telegramSize > 0)
|
||||
{
|
||||
DEBUG_LOG() << "telegramSize=" << telegramSize;
|
||||
DEBUG_LOG(m_logger) << "telegramSize=" << telegramSize;
|
||||
QByteArray buf(telegramSize, Qt::Uninitialized);
|
||||
stream.readRawData(buf.data(), telegramSize);
|
||||
NGL::NGLLoggerHelper::hexDumpHelper(m_logger, NGL::LogLevel::Debug, buf);
|
||||
|
||||
@@ -80,7 +80,7 @@ bool LogViewTetraTelegramsParser::parse(const QString &filename)
|
||||
QFile f(filename);
|
||||
if (!f.open(QIODevice::ReadOnly))
|
||||
{
|
||||
WARNING_LOG() << "Can not open file " << filename << " for reading: " << f.errorString();
|
||||
WARNING_LOG(m_logger) << "Can not open file " << filename << " for reading: " << f.errorString();
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ int LogViewTetraTelegramsParser::parseStruct(const QVector<QStringRef> &lines, i
|
||||
{
|
||||
if (tokens.at(2) != QLatin1String(":"))
|
||||
{
|
||||
WARNING_LOG() << "Could not parse struct: '" << lines.at(iStartPos).toString() << "', line: " << iStartPos + 1;
|
||||
WARNING_LOG(m_logger) << "Could not parse struct: '" << lines.at(iStartPos).toString() << "', line: " << iStartPos + 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -159,7 +159,7 @@ int LogViewTetraTelegramsParser::parseStruct(const QVector<QStringRef> &lines, i
|
||||
{
|
||||
if (!si.baseStruct.isEmpty())
|
||||
{
|
||||
WARNING_LOG() << "Could not parse struct: '" << lines.at(iStartPos).toString() << "', line: " << iStartPos + 1;
|
||||
WARNING_LOG(m_logger) << "Could not parse struct: '" << lines.at(iStartPos).toString() << "', line: " << iStartPos + 1;
|
||||
return -1;
|
||||
}
|
||||
QStringRef base = tokens.at(i);
|
||||
@@ -205,13 +205,13 @@ int LogViewTetraTelegramsParser::parseStruct(const QVector<QStringRef> &lines, i
|
||||
if (tokens.size() > parserCommentPos)
|
||||
{
|
||||
const QStringRef &comment = tokens.at(parserCommentPos);
|
||||
DEBUG_LOG() << "comment: " << comment.toString();
|
||||
DEBUG_LOG(m_logger) << "comment: " << comment.toString();
|
||||
if (comment.startsWith(QLatin1String("//@array: ")))
|
||||
{
|
||||
const QStringRef hint = comment.mid(QLatin1String("//@array: ").size());
|
||||
QString structStr = QLatin1String("struct ") + si.type + QLatin1String("::") + tokens.at(0).toString() + QLatin1Char('\n') + hint.toString();
|
||||
structStr.replace(QLatin1Char(';'), QLatin1String(";\n"));
|
||||
DEBUG_LOG() << "structStr: " << structStr;
|
||||
DEBUG_LOG(m_logger) << "structStr: " << structStr;
|
||||
parseStruct(structStr.splitRef(QLatin1Char('\n')), 0);
|
||||
|
||||
mi.type = si.type + QLatin1String("::") + tokens.at(0).toString();
|
||||
@@ -250,13 +250,13 @@ int LogViewTetraTelegramsParser::parseStruct(const QVector<QStringRef> &lines, i
|
||||
if (m_logger.isDebugEnabled())
|
||||
{
|
||||
if (si.baseStruct.isEmpty())
|
||||
DEBUG_LOG() << "Found Struct: " << si.type;
|
||||
DEBUG_LOG(m_logger) << "Found Struct: " << si.type;
|
||||
else
|
||||
DEBUG_LOG() << "Found Struct: " << si.type << ", base: " << si.baseStruct;
|
||||
DEBUG_LOG(m_logger) << "Found Struct: " << si.type << ", base: " << si.baseStruct;
|
||||
for (int j = 0; j < si.member.size(); ++j)
|
||||
{
|
||||
const MemberInformation &mi = si.member.at(j);
|
||||
DEBUG_LOG() << "Member[" << j << "]: " << mi.type << " - " << mi.name;
|
||||
DEBUG_LOG(m_logger) << "Member[" << j << "]: " << mi.type << " - " << mi.name;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -312,7 +312,7 @@ int LogViewTetraTelegramsParser::parseEnum(const QVector<QStringRef> &lines, int
|
||||
si->member.push_back(std::move(mi));
|
||||
break;
|
||||
}
|
||||
WARNING_LOG() << "Could not parse enum: '" << lines.at(i).toString() << "', line: " << i + 1;
|
||||
WARNING_LOG(m_logger) << "Could not parse enum: '" << lines.at(i).toString() << "', line: " << i + 1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -334,9 +334,9 @@ int LogViewTetraTelegramsParser::parseEnum(const QVector<QStringRef> &lines, int
|
||||
++i;
|
||||
}
|
||||
|
||||
DEBUG_LOG() << "Found Enum: " << ei.type;
|
||||
DEBUG_LOG(m_logger) << "Found Enum: " << ei.type;
|
||||
for (const EnumValue &ev : std::as_const(ei.values))
|
||||
DEBUG_LOG() << "Member[" << i << "]: " << ev.key << " = " << ev.value;
|
||||
DEBUG_LOG(m_logger) << "Member[" << i << "]: " << ev.key << " = " << ev.value;
|
||||
|
||||
if (ei.type == QLatin1String("TelegramId"))
|
||||
m_telegramIdEnum = ei;
|
||||
@@ -351,18 +351,18 @@ int LogViewTetraTelegramsParser::parseConstraint(const QVector<QStringRef> &line
|
||||
const QVector<QStringRef> tokens = tokenize(lines.at(iStartPos));
|
||||
if (tokens.size() != 4)
|
||||
{
|
||||
WARNING_LOG() << "Could not parse constraint: '" << lines.at(iStartPos).toString() << "'";
|
||||
WARNING_LOG(m_logger) << "Could not parse constraint: '" << lines.at(iStartPos).toString() << "'";
|
||||
return -1;
|
||||
}
|
||||
const QStringRef &cs = tokens.at(3);
|
||||
if (!cs.startsWith(QLatin1String("Constraints<")) || !cs.endsWith(QLatin1Char('>')))
|
||||
{
|
||||
WARNING_LOG() << "Could not parse constraint: '" << lines.at(iStartPos).toString() << "'";
|
||||
WARNING_LOG(m_logger) << "Could not parse constraint: '" << lines.at(iStartPos).toString() << "'";
|
||||
return -1;
|
||||
}
|
||||
QStringRef structName = cs.mid(QLatin1String("Constraints<").size());
|
||||
structName.chop(1);
|
||||
DEBUG_LOG() << "Constraint: " << structName.toString();
|
||||
DEBUG_LOG(m_logger) << "Constraint: " << structName.toString();
|
||||
|
||||
int i = iStartPos + 1;
|
||||
while (i < lines.size())
|
||||
@@ -384,7 +384,7 @@ int LogViewTetraTelegramsParser::parseConstraint(const QVector<QStringRef> &line
|
||||
const QVector<QStringRef> parts = tokens.at(6).split(QLatin1String("::"));
|
||||
if (parts.size() != 2)
|
||||
{
|
||||
WARNING_LOG() << "Could not parse constraint: '" << lines.at(i).toString() << "'";
|
||||
WARNING_LOG(m_logger) << "Could not parse constraint: '" << lines.at(i).toString() << "'";
|
||||
return -1;
|
||||
}
|
||||
|
||||
@@ -403,7 +403,7 @@ int LogViewTetraTelegramsParser::parseConstraint(const QVector<QStringRef> &line
|
||||
}
|
||||
if (!bFound)
|
||||
{
|
||||
WARNING_LOG() << "Could not find enum value '" << enumKey.toString() << "' in enum TelegramId";
|
||||
WARNING_LOG(m_logger) << "Could not find enum value '" << enumKey.toString() << "' in enum TelegramId";
|
||||
return -1;
|
||||
}
|
||||
++i;
|
||||
@@ -461,7 +461,7 @@ QVector<QStringRef> LogViewTetraTelegramsParser::tokenize(const QStringRef &line
|
||||
break;
|
||||
const QStringRef &lastToken = ret.last();
|
||||
const QStringRef newToken = QStringRef(token.string(), token.position(), lastToken.position() - token.position() + lastToken.size());
|
||||
DEBUG_LOG() << "New Token: " << newToken.toString();
|
||||
DEBUG_LOG(m_logger) << "New Token: " << newToken.toString();
|
||||
ret.resize(i + 1);
|
||||
ret[i] = newToken;
|
||||
break;
|
||||
@@ -478,7 +478,7 @@ QVector<QStringRef> LogViewTetraTelegramsParser::tokenize(const QStringRef &line
|
||||
}
|
||||
const QStringRef &nextToken = ret.at(i + 1);
|
||||
const QStringRef newToken = QStringRef(token.string(), token.position(), nextToken.position() - token.position() + nextToken.size());
|
||||
DEBUG_LOG() << "New Token: " << newToken.toString();
|
||||
DEBUG_LOG(m_logger) << "New Token: " << newToken.toString();
|
||||
ret.removeAt(i + 1);
|
||||
ret[i] = newToken;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ void LogViewWidget::updateToolTip(const QString &a_text)
|
||||
break;
|
||||
}
|
||||
default:
|
||||
ERROR_LOG() << "Case not implemented";
|
||||
ERROR_LOG(m_logger) << "Case not implemented";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -25,13 +25,13 @@ LogViewXdrElement::LogViewXdrElement(const QString& a_name, const E_ElementKind
|
||||
, m_logger(getLogger(loggerName))
|
||||
{
|
||||
if (a_name.indexOf(QLatin1Char('<')) >= 0 || a_name.indexOf(QLatin1Char('[')) >= 0)
|
||||
ERROR_LOG() << "Element \'" << a_name.toStdString() << "\' has a problem";
|
||||
ERROR_LOG(m_logger) << "Element \'" << a_name.toStdString() << "\' has a problem";
|
||||
}
|
||||
|
||||
|
||||
void LogViewXdrElement::dump() const
|
||||
{
|
||||
INFO_LOG() << "Element[" << getName() << "]: kind=" << getKindName();
|
||||
INFO_LOG(m_logger) << "Element[" << getName() << "]: kind=" << getKindName();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -388,7 +388,7 @@ void LogViewXdrParser::parseEnum(const QString &a_line, const uint16_t a_enumSiz
|
||||
if (ok)
|
||||
m_ActElement->addElement(name, value, LogViewXdrElement::e_KindEnumElement);
|
||||
else
|
||||
ERROR_LOG() << "Problem with converting text to number: name=" << name.toStdString() << " valueText=" << valueText.toStdString();
|
||||
ERROR_LOG(m_logger) << "Problem with converting text to number: name=" << name.toStdString() << " valueText=" << valueText.toStdString();
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -461,7 +461,7 @@ void LogViewXdrParser::parseStruct(const QString &a_line)
|
||||
uint16_t dynArrayOffset;
|
||||
uint16_t arraySize = parseArray(name, dynArrayOffset);
|
||||
if(firstBit >= 0)
|
||||
DEBUG_LOG() << "Add Element " << name
|
||||
DEBUG_LOG(m_logger) << "Add Element " << name
|
||||
<< " with type " << type
|
||||
<< " array size: " << arraySize
|
||||
<< " first:last " << firstBit << ":" << lastBit
|
||||
@@ -683,7 +683,7 @@ int64_t LogViewXdrParser::calcValue(const QString& a_calcText, bool& a_isOk)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
ERROR_LOG() << "Problem with converting '" << a_calcText << "' to integer";
|
||||
ERROR_LOG(m_logger) << "Problem with converting '" << a_calcText << "' to integer";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user