#1971 WLP: Context command to create a new well log RFT curve from a selected well

This commit is contained in:
Rebecca Cox
2017-10-09 12:03:18 +02:00
parent 18552cf2f6
commit da118ac1da
8 changed files with 196 additions and 23 deletions

View File

@@ -272,6 +272,29 @@ const std::set<QString>& RifReaderEclipseRft::wellNames()
return m_wellNames;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifReaderEclipseRft::wellHasRftData(QString wellName)
{
if (!m_ecl_rft_file)
{
open();
}
for (const QString& name : wellNames())
{
if (name == wellName)
{
return true;
}
}
return false;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -45,6 +45,7 @@ public:
std::vector<QDateTime> availableTimeSteps(const QString& wellName, const RifEclipseRftAddress::RftWellLogChannelName& wellLogChannelName);
std::vector<RifEclipseRftAddress::RftWellLogChannelName> availableWellLogChannels(const QString& wellName);
const std::set<QString>& wellNames();
bool wellHasRftData(QString wellName);
private:
void open();