Skip to content

Commit

Permalink
Handling of two levels of network vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Oct 17, 2024
1 parent c636a80 commit fea3df9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions ApplicationLibCode/FileInterface/RifEclipseSummaryAddress.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1034,8 +1034,24 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::fromTokens( const std::vector
break;

case SummaryCategory::SUMMARY_NETWORK:
return networkAddress( vectorName, token1 );
break;
{
auto aggregated = token1;
if ( !token2.empty() )
{
bool useToken2 = true;
if ( useToken2 )
{
aggregated = token2;
}
else
{
aggregated += ":";
aggregated += token2;
}
}
return networkAddress( vectorName, aggregated );
}
break;

case SummaryCategory::SUMMARY_MISC:
return miscAddress( vectorName );
Expand Down

0 comments on commit fea3df9

Please sign in to comment.