#2066 Observed Data : Improve detection of required header lines

This commit is contained in:
Magne Sjaastad
2017-11-06 21:20:53 +01:00
parent 6444b9f32e
commit 5ab56bb2fb
4 changed files with 145 additions and 36 deletions

View File

@@ -584,6 +584,8 @@ std::vector<std::string> RifEclipseUserDataParserTools::findValidHeaderLines(std
std::string line;
bool continueParsing = true;
bool hasStepType = false;
size_t minimunRequiredExtraHeaderLines = 0;
while (continueParsing)
{
posAtTableDataStart = streamData.tellg();
@@ -615,6 +617,12 @@ std::vector<std::string> RifEclipseUserDataParserTools::findValidHeaderLines(std
columnCount = words.size();
minimunRequiredExtraHeaderLines = RifEclipseUserDataKeywordTools::computeRequiredHeaderLineCount(words);
headerLines.push_back(line);
}
else if (headerLines.size() < minimunRequiredExtraHeaderLines)
{
headerLines.push_back(line);
}
else