mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-31 09:14:11 -05:00
Refactor CSV parser: modernize parser to use std::expected.
This commit is contained in:
1 parent
db586cd99a
commit
d137281066
9 files changed
+165
-175
No files matched your search
@@ -49,7 +49,7 @@
|
||||
std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::parseCsv( const QString& content )
|
||||
{
|
||||
QString errorMessage;
|
||||
RifCsvUserDataPastedTextParser parser( content, &errorMessage );
|
||||
RifCsvUserDataPastedTextParser parser( content );
|
||||
|
||||
RifAsciiDataParseOptions parseOptions;
|
||||
parseOptions.cellSeparator = ",";
|
||||
@@ -57,7 +57,8 @@ std::pair<cvf::ref<RigWellPath>, QString> RifOsduWellPathReader::parseCsv( const
|
||||
|
||||
std::vector<std::pair<QString, std::vector<double>>> readValues;
|
||||
|
||||
if ( parser.parse( parseOptions ) )
|
||||
auto parseResult = parser.parse( parseOptions );
|
||||
if ( parseResult )
|
||||
{
|
||||
for ( auto s : parser.tableData().columnInfos() )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user