mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Rename ApplicationCode to ApplicationLibCode
This commit is contained in:
88
ApplicationLibCode/ReservoirDataModel/RigEclipseResultInfo.h
Normal file
88
ApplicationLibCode/ReservoirDataModel/RigEclipseResultInfo.h
Normal file
@@ -0,0 +1,88 @@
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// 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 "RigEclipseResultAddress.h"
|
||||
|
||||
#include "RiaDefines.h"
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QString>
|
||||
|
||||
#include <vector>
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RigEclipseTimeStepInfo
|
||||
{
|
||||
public:
|
||||
RigEclipseTimeStepInfo( const QDateTime& date, int reportNumber, double daysSinceSimulationStart );
|
||||
|
||||
static std::vector<RigEclipseTimeStepInfo> createTimeStepInfos( std::vector<QDateTime> dates,
|
||||
std::vector<int> reportNumbers,
|
||||
std::vector<double> daysSinceSimulationStarts );
|
||||
|
||||
public:
|
||||
QDateTime m_date;
|
||||
int m_reportNumber;
|
||||
double m_daysSinceSimulationStart;
|
||||
};
|
||||
|
||||
//==================================================================================================
|
||||
///
|
||||
//==================================================================================================
|
||||
class RigEclipseResultInfo
|
||||
{
|
||||
public:
|
||||
RigEclipseResultInfo( const RigEclipseResultAddress& resultAddress,
|
||||
bool needsToBeStored = false,
|
||||
bool mustBeCalculated = false,
|
||||
size_t gridScalarResultIndex = 0u );
|
||||
|
||||
RiaDefines::ResultCatType resultType() const;
|
||||
const QString& resultName() const;
|
||||
bool needsToBeStored() const;
|
||||
|
||||
std::vector<QDateTime> dates() const;
|
||||
std::vector<double> daysSinceSimulationStarts() const;
|
||||
std::vector<int> reportNumbers() const;
|
||||
|
||||
bool operator<( const RigEclipseResultInfo& rhs ) const;
|
||||
|
||||
const RigEclipseResultAddress& eclipseResultAddress() const { return m_resultAddress; }
|
||||
|
||||
private:
|
||||
friend class RigCaseCellResultsData;
|
||||
void setResultType( RiaDefines::ResultCatType newType );
|
||||
void setResultName( const QString& name );
|
||||
bool mustBeCalculated() const;
|
||||
void setMustBeCalculated( bool mustCalculate );
|
||||
size_t gridScalarResultIndex() const;
|
||||
|
||||
const std::vector<RigEclipseTimeStepInfo>& timeStepInfos() const;
|
||||
void setTimeStepInfos( const std::vector<RigEclipseTimeStepInfo>& timeSteps );
|
||||
|
||||
RigEclipseResultAddress m_resultAddress;
|
||||
size_t m_gridScalarResultIndex;
|
||||
std::vector<RigEclipseTimeStepInfo> m_timeStepInfos;
|
||||
|
||||
bool m_needsToBeStored;
|
||||
bool m_mustBeCalculated;
|
||||
};
|
||||
Reference in New Issue
Block a user