From 31e0a0349fdf4dc2b4b67e460a790f3075df4d9b Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Tue, 5 Nov 2019 14:10:14 +0100 Subject: [PATCH] Add more comments. --- .../RifEclipseInputPropertyLoader.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/ApplicationCode/FileInterface/RifEclipseInputPropertyLoader.cpp b/ApplicationCode/FileInterface/RifEclipseInputPropertyLoader.cpp index 761176061c..ae378fda58 100644 --- a/ApplicationCode/FileInterface/RifEclipseInputPropertyLoader.cpp +++ b/ApplicationCode/FileInterface/RifEclipseInputPropertyLoader.cpp @@ -82,6 +82,9 @@ void RifEclipseInputPropertyLoader::loadAndSyncronizeInputProperties( setResolvedState( inputPropertyCollection, RimEclipseInputProperty::UNKNOWN, RimEclipseInputProperty::FILE_MISSING ); } +//-------------------------------------------------------------------------------------------------- +/// Loads input property data from additional files. +//-------------------------------------------------------------------------------------------------- bool RifEclipseInputPropertyLoader::readInputPropertiesFromFiles( RimEclipseInputPropertyCollection* inputPropertyCollection, RigEclipseCaseData* eclipseCaseData, bool importFaults, @@ -122,6 +125,9 @@ bool RifEclipseInputPropertyLoader::readInputPropertiesFromFiles( RimEclipseInpu return true; } +//-------------------------------------------------------------------------------------------------- +/// Extract keywords from a input property file. +//-------------------------------------------------------------------------------------------------- std::set RifEclipseInputPropertyLoader::extractKeywordsOnFile( const QString& filename, bool isExistingFile ) { std::set fileKeywordSet; @@ -138,6 +144,9 @@ std::set RifEclipseInputPropertyLoader::extractKeywordsOnFile( const QS return fileKeywordSet; } +//-------------------------------------------------------------------------------------------------- +/// Change the resolved state of all matching input properties in a collection. +//-------------------------------------------------------------------------------------------------- void RifEclipseInputPropertyLoader::setResolvedState( RimEclipseInputPropertyCollection* inputPropertyCollection, RimEclipseInputProperty::ResolveState currentState, RimEclipseInputProperty::ResolveState newState ) @@ -151,6 +160,9 @@ void RifEclipseInputPropertyLoader::setResolvedState( RimEclipseInputPropertyCol } } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- void RifEclipseInputPropertyLoader::readDataForEachInputProperty( RimEclipseInputPropertyCollection* inputPropertyCollection, RigEclipseCaseData* eclipseCaseData, const QString& filename, @@ -190,6 +202,9 @@ void RifEclipseInputPropertyLoader::readDataForEachInputProperty( RimEclipseInpu } } +//-------------------------------------------------------------------------------------------------- +/// +//-------------------------------------------------------------------------------------------------- void RifEclipseInputPropertyLoader::readInputPropertiesForRemainingKeywords( RimEclipseInputPropertyCollection* inputPropertyCollection, RigEclipseCaseData* eclipseCaseData,