VATSIM data file parser "fixes"

- Limit the number of parser errors going to the log
- stop parsing if no attributes can be obtained (otherwise we see too many parser messages)
This commit is contained in:
Klaus Basan
2020-04-01 18:08:20 +02:00
committed by Mat Sutcliffe
parent e997940be9
commit 299859646a
3 changed files with 32 additions and 9 deletions

View File

@@ -163,7 +163,7 @@ namespace BlackCore
//! Split line and assign values to their corresponding attribute names
//! \remark attributes expected as lower case
static const QMap<QString, QString> clientPartsToMap(const QString &currentLine, const QStringList &clientSectionAttributes);
static const QMap<QString, QString> clientPartsToMap(const QString &currentLine, const QStringList &clientSectionAttributes, bool logInconsistency);
//! Get current section
static Section currentLineToSection(const QString &currentLine);