mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1666 CommandFile: Add line numbers to parse messages
This commit is contained in:
@@ -59,17 +59,17 @@ void RicfObjectCapability::readFields(QTextStream& inputStream,
|
||||
bool isEndOfArgumentFound = false;
|
||||
QString keyword;
|
||||
{
|
||||
inputStream.skipWhiteSpace();
|
||||
errorMessageContainer->skipWhiteSpaceWithLineNumberCount(inputStream);
|
||||
while ( !inputStream.atEnd() )
|
||||
{
|
||||
QChar currentChar;
|
||||
inputStream >> currentChar;
|
||||
currentChar = errorMessageContainer->readCharWithLineNumberCount(inputStream);
|
||||
if ( currentChar.isSpace() )
|
||||
{
|
||||
// Must skip to, and read "="
|
||||
|
||||
inputStream.skipWhiteSpace();
|
||||
inputStream >> currentChar;
|
||||
errorMessageContainer->skipWhiteSpaceWithLineNumberCount(inputStream);
|
||||
currentChar = errorMessageContainer->readCharWithLineNumberCount(inputStream);
|
||||
|
||||
if ( currentChar != QChar('=') )
|
||||
{
|
||||
@@ -135,7 +135,7 @@ void RicfObjectCapability::readFields(QTextStream& inputStream,
|
||||
bool isOutsideQuotes = true;
|
||||
while ( !inputStream.atEnd() )
|
||||
{
|
||||
inputStream >> currentChar;
|
||||
currentChar = errorMessageContainer->readCharWithLineNumberCount(inputStream);
|
||||
if ( isOutsideQuotes )
|
||||
{
|
||||
if ( currentChar == QChar(',') )
|
||||
@@ -162,7 +162,7 @@ void RicfObjectCapability::readFields(QTextStream& inputStream,
|
||||
|
||||
if ( currentChar == QChar('\\') )
|
||||
{
|
||||
inputStream >> currentChar;
|
||||
currentChar = errorMessageContainer->readCharWithLineNumberCount(inputStream);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user