2017-09-15 07:26:06 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-09-15 07:26:06 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-09-15 07:26:06 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-09-15 07:26:06 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-01-21 05:58:46 -06:00
|
|
|
#include "RiaDefines.h"
|
2017-09-15 07:26:06 -05:00
|
|
|
#include "RifEclipseSummaryAddress.h"
|
|
|
|
|
2017-09-22 07:59:47 -05:00
|
|
|
#include "cvfObject.h"
|
|
|
|
|
2017-09-15 07:26:06 -05:00
|
|
|
#include <map>
|
2018-06-25 08:14:47 -05:00
|
|
|
#include <set>
|
2019-09-06 03:40:57 -05:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2017-09-15 07:26:06 -05:00
|
|
|
|
|
|
|
class QDateTime;
|
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
|
|
|
class RifSummaryReaderInterface : public cvf::Object
|
|
|
|
{
|
|
|
|
public:
|
2019-09-06 03:40:57 -05:00
|
|
|
bool hasAddress( const RifEclipseSummaryAddress& resultAddress ) const;
|
|
|
|
|
|
|
|
const std::set<RifEclipseSummaryAddress>& allResultAddresses() const;
|
|
|
|
const std::set<RifEclipseSummaryAddress>& allErrorAddresses() const;
|
|
|
|
|
|
|
|
RifEclipseSummaryAddress errorAddress( const RifEclipseSummaryAddress& resultAddress ) const;
|
|
|
|
|
2023-02-13 05:40:08 -06:00
|
|
|
virtual std::vector<time_t> timeSteps( const RifEclipseSummaryAddress& resultAddress ) const = 0;
|
2019-06-07 07:41:55 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
virtual bool values( const RifEclipseSummaryAddress& resultAddress, std::vector<double>* values ) const = 0;
|
2017-09-22 07:59:47 -05:00
|
|
|
|
2021-01-21 05:58:46 -06:00
|
|
|
virtual std::string unitName( const RifEclipseSummaryAddress& resultAddress ) const = 0;
|
|
|
|
virtual RiaDefines::EclipseUnitSystem unitSystem() const = 0;
|
2017-09-15 07:26:06 -05:00
|
|
|
|
|
|
|
protected:
|
2019-09-06 03:40:57 -05:00
|
|
|
std::set<RifEclipseSummaryAddress> m_allResultAddresses; // Result and error addresses
|
|
|
|
std::set<RifEclipseSummaryAddress> m_allErrorAddresses; // Error addresses
|
2017-09-15 07:26:06 -05:00
|
|
|
};
|