ResInsight/ApplicationCode/ReservoirDataModel/RigEclipseResultInfo.h

68 lines
2.5 KiB
C
Raw Normal View History

/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2017 Statoil ASA
//
// ResInsight is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// ResInsight is distributed in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE.
//
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "RiaDefines.h"
2017-08-11 02:21:32 -05:00
#include <QDateTime>
#include <QString>
#include <vector>
2017-08-11 02:21:32 -05:00
//==================================================================================================
///
//==================================================================================================
2017-08-11 08:10:08 -05:00
class RigEclipseTimeStepInfo
2017-08-11 02:21:32 -05:00
{
public:
2017-08-11 08:10:08 -05:00
RigEclipseTimeStepInfo(const QDateTime& date, int reportNumber, double daysSinceSimulationStart);
2017-08-11 02:21:32 -05:00
2017-08-11 08:10:08 -05:00
static std::vector<RigEclipseTimeStepInfo> createTimeStepInfos(std::vector<QDateTime> dates,
2017-08-11 02:21:32 -05:00
std::vector<int> reportNumbers,
std::vector<double> daysSinceSimulationStarts);
public:
QDateTime m_date;
int m_reportNumber;
double m_daysSinceSimulationStart;
};
2017-08-11 02:21:32 -05:00
//==================================================================================================
///
//==================================================================================================
2017-08-11 08:10:08 -05:00
class RigEclipseResultInfo
{
public:
2017-08-11 08:10:08 -05:00
RigEclipseResultInfo(RiaDefines::ResultCatType resultType, bool needsToBeStored, bool mustBeCalculated,
QString resultName, size_t gridScalarResultIndex);
2017-08-11 02:21:32 -05:00
std::vector<QDateTime> dates() const;
std::vector<double> daysSinceSimulationStarts() const;
std::vector<int> reportNumbers() const;
public:
RiaDefines::ResultCatType m_resultType;
bool m_needsToBeStored;
bool m_mustBeCalculated;
QString m_resultName;
size_t m_gridScalarResultIndex;
2017-08-11 02:21:32 -05:00
2017-08-11 08:10:08 -05:00
std::vector<RigEclipseTimeStepInfo> m_timeStepInfos;
};