#1947 RFT/PLT Plot: Use AppEnum for wellLogChannel and remove qwtPlot field in rftCurve

This commit is contained in:
Rebecca Cox
2017-10-06 13:35:49 +02:00
parent a01dd00d62
commit aeb854b895
6 changed files with 138 additions and 91 deletions

View File

@@ -31,27 +31,31 @@
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;
enum RftWellLogChannelName
{
NONE,
DEPTH,
PRESSURE,
SWAT,
SOIL,
SGAS,
WRAT,
ORAT,
GRAT
};
public:
RifEclipseRftAddress(QString wellName, QDateTime timeStep, QString wellLogChannelName);
RifEclipseRftAddress(QString wellName, QDateTime timeStep, RftWellLogChannelName wellLogChannelName);
static std::vector<QString> allWellLogChannelNamesExDepth();
const QString& wellName() const { return m_wellName; }
QDateTime timeStep() const { return m_timeStep; }
const QString& wellLogChannelName() const { return m_wellLogChannelName; }
const QString& wellName() const { return m_wellName; }
QDateTime timeStep() const { return m_timeStep; }
const RftWellLogChannelName& wellLogChannelName() const { return m_wellLogChannelName; }
private:
QString m_wellName;
QDateTime m_timeStep;
QString m_wellLogChannelName;
QString m_wellName;
QDateTime m_timeStep;
RftWellLogChannelName m_wellLogChannelName;
};
bool operator==(const RifEclipseRftAddress& first, const RifEclipseRftAddress& second);