mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1947 RFT/PLT Plot: Create const string in rftAddress for wellLogChannelName
This commit is contained in:
@@ -19,16 +19,26 @@
|
|||||||
#include "RifEclipseRftAddress.h"
|
#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.setTimeSpec(Qt::TimeSpec::UTC);
|
||||||
m_timeStep.setTime_t(timeStep);
|
m_timeStep.setTime_t(timeStep);
|
||||||
|
|
||||||
m_wellName = QString(wellName.c_str());
|
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;
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#include <vector>
|
||||||
|
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
|
|
||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
@@ -28,9 +30,20 @@
|
|||||||
//==================================================================================================
|
//==================================================================================================
|
||||||
class RifEclipseRftAddress
|
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:
|
public:
|
||||||
RifEclipseRftAddress(QString wellName, QDateTime timeStep, QString wellLogChannelName);
|
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; }
|
const QString& wellName() const { return m_wellName; }
|
||||||
QDateTime timeStep() const { return m_timeStep; }
|
QDateTime timeStep() const { return m_timeStep; }
|
||||||
|
|||||||
Reference in New Issue
Block a user