mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Refactor: rename WellLogFileChannel to WellLogChannel.
This commit is contained in:
@@ -42,7 +42,7 @@ set(SOURCE_GROUP_SOURCE_FILES
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogCsvFile.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogFile.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogFileUtil.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogFileChannel.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogChannel.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogLasFileCurve.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogRftCurve.cpp
|
||||
${CMAKE_CURRENT_LIST_DIR}/RimWellLogWbsCurve.cpp
|
||||
|
||||
@@ -40,9 +40,9 @@
|
||||
#include "RimGeoMechResultDefinition.h"
|
||||
#include "RimGeoMechView.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellLogExtractionCurve.h"
|
||||
#include "RimWellLogExtractionCurveNameConfig.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellPath.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "RigWellLogLasFile.h"
|
||||
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellLogLasFileCurveNameConfig.h"
|
||||
#include "RimWellPath.h"
|
||||
@@ -72,7 +72,7 @@ void Rim3dWellLogFileCurve::setDefaultFileCurveDataInfo()
|
||||
|
||||
if ( m_wellLogFile )
|
||||
{
|
||||
std::vector<RimWellLogFileChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
std::vector<RimWellLogChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
|
||||
if ( !fileLogs.empty() )
|
||||
{
|
||||
@@ -204,7 +204,7 @@ QList<caf::PdmOptionItemInfo> Rim3dWellLogFileCurve::calculateValueOptions( cons
|
||||
{
|
||||
if ( m_wellLogFile )
|
||||
{
|
||||
std::vector<RimWellLogFileChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
std::vector<RimWellLogChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
|
||||
for ( size_t i = 0; i < fileLogs.size(); i++ )
|
||||
{
|
||||
|
||||
@@ -38,8 +38,8 @@
|
||||
#include "RimProject.h"
|
||||
#include "RimSummaryCase.h"
|
||||
#include "RimSummaryCaseCollection.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellLogLasFileCurve.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
@@ -567,7 +567,7 @@ QList<caf::PdmOptionItemInfo> RimEnsembleWellLogCurveSet::calculateValueOptions(
|
||||
std::set<QString> wellLogChannelNames;
|
||||
for ( auto wellLogFile : m_ensembleWellLogs->wellLogFiles() )
|
||||
{
|
||||
std::vector<RimWellLogFileChannel*> fileLogs = wellLogFile->wellLogChannels();
|
||||
std::vector<RimWellLogChannel*> fileLogs = wellLogFile->wellLogChannels();
|
||||
for ( size_t i = 0; i < fileLogs.size(); i++ )
|
||||
{
|
||||
QString wellLogChannelName = fileLogs[i]->name();
|
||||
|
||||
@@ -17,18 +17,18 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
|
||||
#include "RiaFieldHandleTools.h"
|
||||
|
||||
#include <QString>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimWellLogFileChannel, "WellLogFileChannel" );
|
||||
CAF_PDM_SOURCE_INIT( RimWellLogChannel, "WellLogFileChannel" );
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
RimWellLogFileChannel::RimWellLogFileChannel()
|
||||
RimWellLogChannel::RimWellLogChannel()
|
||||
{
|
||||
CAF_PDM_InitObject( "Well Log File Channel" );
|
||||
|
||||
@@ -39,7 +39,7 @@ RimWellLogFileChannel::RimWellLogFileChannel()
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimWellLogFileChannel::setName( const QString& name )
|
||||
void RimWellLogChannel::setName( const QString& name )
|
||||
{
|
||||
m_name = name;
|
||||
}
|
||||
@@ -28,12 +28,12 @@ class QString;
|
||||
///
|
||||
///
|
||||
//==================================================================================================
|
||||
class RimWellLogFileChannel : public caf::PdmObject
|
||||
class RimWellLogChannel : public caf::PdmObject
|
||||
{
|
||||
CAF_PDM_HEADER_INIT;
|
||||
|
||||
public:
|
||||
RimWellLogFileChannel();
|
||||
RimWellLogChannel();
|
||||
|
||||
void setName( const QString& name );
|
||||
QString name() const { return m_name; }
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
#include "RimFileWellPath.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QString>
|
||||
@@ -91,7 +91,7 @@ bool RimWellLogCsvFile::readFile( QString* errorMessage )
|
||||
QStringList wellLogNames = m_wellLogDataFile->wellLogChannelNames();
|
||||
for ( int logIdx = 0; logIdx < wellLogNames.size(); logIdx++ )
|
||||
{
|
||||
RimWellLogFileChannel* wellLog = new RimWellLogFileChannel();
|
||||
RimWellLogChannel* wellLog = new RimWellLogChannel();
|
||||
wellLog->setName( wellLogNames[logIdx] );
|
||||
m_wellLogChannelNames.push_back( wellLog );
|
||||
}
|
||||
|
||||
@@ -51,9 +51,9 @@
|
||||
#include "RimMainPlotCollection.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellBoreStabilityPlot.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellLogCurve.h"
|
||||
#include "RimWellLogCurveCommonDataSource.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogFileUtil.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "RimFileWellPath.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
|
||||
#include "RiaFieldHandleTools.h"
|
||||
#include "RiaQDateTimeTools.h"
|
||||
@@ -79,9 +79,9 @@ QString RimWellLogFile::fileName() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::vector<RimWellLogFileChannel*> RimWellLogFile::wellLogChannels() const
|
||||
std::vector<RimWellLogChannel*> RimWellLogFile::wellLogChannels() const
|
||||
{
|
||||
std::vector<RimWellLogFileChannel*> channels;
|
||||
std::vector<RimWellLogChannel*> channels;
|
||||
for ( const auto& channel : m_wellLogChannelNames )
|
||||
{
|
||||
channels.push_back( channel );
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <QDateTime>
|
||||
#include <QString>
|
||||
|
||||
class RimWellLogFileChannel;
|
||||
class RimWellLogChannel;
|
||||
class RimWellPath;
|
||||
|
||||
class RigWellLogFile;
|
||||
@@ -42,9 +42,9 @@ public:
|
||||
RimWellLogFile();
|
||||
~RimWellLogFile() override;
|
||||
|
||||
virtual void setFileName( const QString& fileName );
|
||||
virtual QString fileName() const;
|
||||
virtual std::vector<RimWellLogFileChannel*> wellLogChannels() const;
|
||||
virtual void setFileName( const QString& fileName );
|
||||
virtual QString fileName() const;
|
||||
virtual std::vector<RimWellLogChannel*> wellLogChannels() const;
|
||||
|
||||
virtual QString wellName() const = 0;
|
||||
virtual QString name() const = 0;
|
||||
@@ -62,7 +62,7 @@ protected:
|
||||
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
|
||||
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
|
||||
|
||||
caf::PdmChildArrayField<RimWellLogFileChannel*> m_wellLogChannelNames;
|
||||
caf::PdmField<caf::FilePath> m_fileName;
|
||||
caf::PdmField<QDateTime> m_date;
|
||||
caf::PdmChildArrayField<RimWellLogChannel*> m_wellLogChannelNames;
|
||||
caf::PdmField<caf::FilePath> m_fileName;
|
||||
caf::PdmField<QDateTime> m_date;
|
||||
};
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "RimFileWellPath.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellPathCollection.h"
|
||||
#include "RimWellPlotTools.h"
|
||||
|
||||
@@ -155,7 +155,7 @@ bool RimWellLogLasFile::readFile( QString* errorMessage )
|
||||
QStringList wellLogNames = m_wellLogDataFile->wellLogChannelNames();
|
||||
for ( int logIdx = 0; logIdx < wellLogNames.size(); logIdx++ )
|
||||
{
|
||||
RimWellLogFileChannel* wellLog = new RimWellLogFileChannel();
|
||||
RimWellLogChannel* wellLog = new RimWellLogChannel();
|
||||
wellLog->setName( wellLogNames[logIdx] );
|
||||
m_wellLogChannelNames.push_back( wellLog );
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include <QDateTime>
|
||||
|
||||
class RimWellLogFileChannel;
|
||||
class RimWellLogChannel;
|
||||
class RimWellPath;
|
||||
|
||||
class QString;
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
|
||||
#include "RimProject.h"
|
||||
#include "RimTools.h"
|
||||
#include "RimWellLogFileChannel.h"
|
||||
#include "RimWellLogChannel.h"
|
||||
#include "RimWellLogLasFile.h"
|
||||
#include "RimWellLogPlot.h"
|
||||
#include "RimWellLogTrack.h"
|
||||
@@ -382,7 +382,7 @@ QList<caf::PdmOptionItemInfo> RimWellLogLasFileCurve::calculateValueOptions( con
|
||||
{
|
||||
if ( m_wellLogFile )
|
||||
{
|
||||
std::vector<RimWellLogFileChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
std::vector<RimWellLogChannel*> fileLogs = m_wellLogFile->wellLogChannels();
|
||||
|
||||
for ( size_t i = 0; i < fileLogs.size(); i++ )
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include <vector>
|
||||
|
||||
class RimWellPath;
|
||||
class RimWellLogFileChannel;
|
||||
class RimWellLogChannel;
|
||||
class RimWellLogFile;
|
||||
class RigWellLogIndexDepthOffset;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user