#1947 RFT/PLT Plot: Create const string in rftAddress for wellLogChannelName

This commit is contained in:
Unknown
2017-10-05 21:16:16 +02:00
committed by Rebecca Cox
parent 5f050448f9
commit e23783c1ed
2 changed files with 44 additions and 3 deletions

View File

@@ -19,16 +19,26 @@
#include "RifEclipseRftAddress.h"
const QString RifEclipseRftAddress::DEPTH = "Depth";
const QString RifEclipseRftAddress::PRESSURE = "Pressure";
const QString RifEclipseRftAddress::SWAT = "Water Saturation";
const QString RifEclipseRftAddress::SOIL = "Oil Saturation";
const QString RifEclipseRftAddress::SGAS = "Gas Saturation";
const QString RifEclipseRftAddress::WRAT = "Water Flow";
const QString RifEclipseRftAddress::ORAT = "Oil Flow";
const QString RifEclipseRftAddress::GRAT = "Gas Flow";
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
RifEclipseRftAddress::RifEclipseRftAddress(std::string wellName, time_t timeStep, std::string wellLogChannelName)
RifEclipseRftAddress::RifEclipseRftAddress(std::string wellName, time_t timeStep, QString wellLogChannelName):
m_wellLogChannelName(wellLogChannelName)
{
m_timeStep.setTimeSpec(Qt::TimeSpec::UTC);
m_timeStep.setTime_t(timeStep);
m_wellName = QString(wellName.c_str());
m_wellLogChannelName = QString(wellLogChannelName.c_str());
//m_wellLogChannelName = QString(wellLogChannelName.c_str());
}
//--------------------------------------------------------------------------------------------------
@@ -43,6 +53,24 @@ RifEclipseRftAddress::RifEclipseRftAddress(QString wellName, QDateTime timeStep,
m_timeStep = timeStep;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
std::vector<QString> RifEclipseRftAddress::allWellLogChannelNames()
{
std::vector<QString> channelNames;
channelNames.push_back(RifEclipseRftAddress::DEPTH);
channelNames.push_back(RifEclipseRftAddress::PRESSURE);
channelNames.push_back(RifEclipseRftAddress::SWAT);
channelNames.push_back(RifEclipseRftAddress::SOIL);
channelNames.push_back(RifEclipseRftAddress::SGAS);
channelNames.push_back(RifEclipseRftAddress::WRAT);
channelNames.push_back(RifEclipseRftAddress::ORAT);
channelNames.push_back(RifEclipseRftAddress::GRAT);
return channelNames;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------

View File

@@ -20,6 +20,8 @@
#pragma once
#include <string>
#include <vector>
#include <QDateTime>
//==================================================================================================
@@ -28,9 +30,20 @@
//==================================================================================================
class RifEclipseRftAddress
{
public:
static const QString DEPTH;
static const QString PRESSURE;
static const QString SWAT;
static const QString SOIL;
static const QString SGAS;
static const QString WRAT;
static const QString ORAT;
static const QString GRAT;
public:
RifEclipseRftAddress(QString wellName, QDateTime timeStep, QString wellLogChannelName);
RifEclipseRftAddress(std::string wellName, time_t timeStep, std::string wellLogChannelName);
RifEclipseRftAddress(std::string wellName, time_t timeStep, QString wellLogChannelName);
static std::vector<QString> allWellLogChannelNames();
const QString& wellName() const { return m_wellName; }
QDateTime timeStep() const { return m_timeStep; }