Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
magnesj committed Feb 25, 2024
1 parent f780421 commit 8637572
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void RifMultipleSummaryReaders::addReader( RifSummaryReaderInterface* reader )

m_readers.push_back( reader );

rebuildMetaData();
buildMetaData();
}

//--------------------------------------------------------------------------------------------------
Expand All @@ -45,7 +45,7 @@ void RifMultipleSummaryReaders::addReader( RifSummaryReaderInterface* reader )
void RifMultipleSummaryReaders::removeReader( RifSummaryReaderInterface* reader )
{
m_readers.erase( reader );
rebuildMetaData();
buildMetaData();
}

//--------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -100,7 +100,7 @@ RiaDefines::EclipseUnitSystem RifMultipleSummaryReaders::unitSystem() const
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifMultipleSummaryReaders::rebuildMetaData()
void RifMultipleSummaryReaders::buildMetaData()
{
m_allErrorAddresses.clear();
m_allResultAddresses.clear();
Expand All @@ -109,7 +109,7 @@ void RifMultipleSummaryReaders::rebuildMetaData()
{
// TODO: hack. Find a better way to rebuild calculated summary meta data.
auto calcReader = dynamic_cast<RifCalculatedSummaryCurveReader*>( reader.p() );
if ( calcReader ) calcReader->rebuildMetaData();
if ( calcReader ) calcReader->buildMetaData();

{
auto resultAddresses = reader->allResultAddresses();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class RifMultipleSummaryReaders : public RifSummaryReaderInterface
std::string unitName( const RifEclipseSummaryAddress& resultAddress ) const override;
RiaDefines::EclipseUnitSystem unitSystem() const override;

void rebuildMetaData() override;
void buildMetaData() override;

private:
cvf::Collection<RifSummaryReaderInterface> m_readers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ RifEclipseSummaryAddress RifSummaryReaderInterface::errorAddress( const RifEclip
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifSummaryReaderInterface::rebuildMetaData()
void RifSummaryReaderInterface::buildMetaData()
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class RifSummaryReaderInterface : public cvf::Object
virtual std::string unitName( const RifEclipseSummaryAddress& resultAddress ) const = 0;
virtual RiaDefines::EclipseUnitSystem unitSystem() const = 0;

virtual void rebuildMetaData();
virtual void buildMetaData();

protected:
std::set<RifEclipseSummaryAddress> m_allResultAddresses; // Result and error addresses
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void RimSummaryCalculationCollection::updateDataDependingOnCalculations()

if ( auto reader = summaryCase->summaryReader() )
{
reader->rebuildMetaData();
reader->buildMetaData();
summaryCase->onCalculationUpdated();
}
}
Expand All @@ -73,7 +73,7 @@ void RimSummaryCalculationCollection::updateDataDependingOnCalculations()

if ( auto reader = obs->summaryReader() )
{
reader->rebuildMetaData();
reader->buildMetaData();
obs->onCalculationUpdated();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ std::string RifCalculatedSummaryCurveReader::unitName( const RifEclipseSummaryAd
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RifCalculatedSummaryCurveReader::rebuildMetaData()
void RifCalculatedSummaryCurveReader::buildMetaData()
{
m_allResultAddresses.clear();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class RifCalculatedSummaryCurveReader : public RifSummaryReaderInterface
std::pair<bool, std::vector<double>> values( const RifEclipseSummaryAddress& resultAddress ) const override;
std::string unitName( const RifEclipseSummaryAddress& resultAddress ) const override;

void rebuildMetaData() override;
void buildMetaData() override;

RiaDefines::EclipseUnitSystem unitSystem() const override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,30 +22,23 @@
#include "RiaFieldHandleTools.h"
#include "RiaLogging.h"
#include "RiaStatisticsTools.h"
#include "RiaStdStringTools.h"
#include "RiaSummaryAddressAnalyzer.h"
#include "RiaWeightedMeanCalculator.h"

#include "RicfCommandObject.h"

#include "RifReaderRftInterface.h"
#include "RifSummaryReaderInterface.h"

#include "RimAnalysisPlotDataEntry.h"
#include "RimDerivedEnsembleCaseCollection.h"
#include "RimEnsembleCurveSet.h"
#include "RimProject.h"
#include "RimSummaryAddressCollection.h"
#include "RimSummaryCalculationCollection.h"
#include "RimSummaryCase.h"

#include "cafPdmFieldScriptingCapability.h"
#include "cafPdmObjectScriptingCapability.h"
#include "cafPdmUiTreeOrdering.h"

#include <QDate>
#include <QFileInfo>

#include <algorithm>
#include <cmath>

CAF_PDM_SOURCE_INIT( RimSummaryCaseCollection, "SummaryCaseSubCollection" );
Expand Down Expand Up @@ -284,7 +277,7 @@ void RimSummaryCaseCollection::setAsEnsemble( bool isEnsemble )
calculateEnsembleParametersIntersectionHash();
}

refreshMetaData();
buildMetaData();
}
}

Expand Down Expand Up @@ -1155,7 +1148,7 @@ void RimSummaryCaseCollection::buildChildNodes()
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
void RimSummaryCaseCollection::refreshMetaData()
void RimSummaryCaseCollection::buildMetaData()
{
clearChildNodes();
buildChildNodes();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,17 @@
#pragma once

#include "RiaDefines.h"

#include "RifEclipseSummaryAddress.h"

#include "RigEnsembleParameter.h"

#include "RimObjectiveFunction.h"

#include "cafPdmChildArrayField.h"
#include "cafPdmChildField.h"
#include "cafPdmField.h"
#include "cafPdmObject.h"
#include "cafPdmProxyValueField.h"

#include "cvfObject.h"

#include <QString>

#include <memory>
Expand Down Expand Up @@ -103,7 +100,6 @@ class RimSummaryCaseCollection : public caf::PdmObject

RiaDefines::EclipseUnitSystem unitSystem() const;

void refreshMetaData();
void onCalculationUpdated();

void updateReferringCurveSets();
Expand All @@ -128,6 +124,7 @@ class RimSummaryCaseCollection : public caf::PdmObject

void onCaseNameChanged( const SignalEmitter* emitter );

void buildMetaData();
void buildChildNodes();
void clearChildNodes();

Expand Down

0 comments on commit 8637572

Please sign in to comment.