Add summary category time

To be able to represent the time in a RifEclipseSummaryAddress object we add time as a category
This commit is contained in:
Magne Sjaastad
2023-09-18 09:25:00 +02:00
parent ae4a856343
commit c06cda3883
3 changed files with 24 additions and 1 deletions

View File

@@ -445,6 +445,16 @@ RifEclipseSummaryAddress RifEclipseSummaryAddress::ensembleStatisticsAddress( co
return addr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifEclipseSummaryAddress RifEclipseSummaryAddress::timeAddress()
{
RifEclipseSummaryAddress addr;
addr.m_variableCategory = SummaryVarCategory::SUMMARY_TIME;
return addr;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
@@ -1241,6 +1251,14 @@ bool RifEclipseSummaryAddress::isCalculated() const
return m_id != -1;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseSummaryAddress::isTime() const
{
return m_variableCategory == SummaryVarCategory::SUMMARY_TIME;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------