2016-05-31 06:42:27 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-05-31 06:42:27 -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
|
|
|
//
|
2016-05-31 06:42:27 -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>
|
2016-05-31 06:42:27 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "RimSummaryCase.h"
|
2017-09-22 02:21:12 -05:00
|
|
|
|
2018-03-19 05:02:22 -05:00
|
|
|
#include "cafPdmField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cvfObject.h"
|
2017-09-22 02:11:39 -05:00
|
|
|
|
2019-07-25 00:38:46 -05:00
|
|
|
class RifReaderRftInterface;
|
|
|
|
class RifReaderEclipseRft;
|
2017-09-22 02:11:39 -05:00
|
|
|
class RifReaderEclipseSummary;
|
2021-04-08 08:53:38 -05:00
|
|
|
class RiaThreadSafeLogger;
|
2017-09-22 02:11:39 -05:00
|
|
|
|
2016-05-31 06:42:27 -05:00
|
|
|
//==================================================================================================
|
|
|
|
//
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2016-05-31 06:42:27 -05:00
|
|
|
//
|
|
|
|
//==================================================================================================
|
2019-09-06 03:40:57 -05:00
|
|
|
class RimFileSummaryCase : public RimSummaryCase
|
2016-05-31 06:42:27 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
2019-09-06 03:40:57 -05:00
|
|
|
|
2016-05-31 06:42:27 -05:00
|
|
|
public:
|
|
|
|
RimFileSummaryCase();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimFileSummaryCase() override;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
QString summaryHeaderFilename() const override;
|
|
|
|
QString caseName() const override;
|
|
|
|
void updateFilePathsFromProjectPath( const QString& newProjectPath, const QString& oldProjectPath ) override;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2021-04-08 08:53:38 -05:00
|
|
|
void createSummaryReaderInterfaceThreadSafe( RiaThreadSafeLogger* threadSafeLogger );
|
2019-09-06 03:40:57 -05:00
|
|
|
void createSummaryReaderInterface() override;
|
|
|
|
void createRftReaderInterface() override;
|
2018-10-18 12:45:57 -05:00
|
|
|
RifSummaryReaderInterface* summaryReader() override;
|
2019-07-25 00:38:46 -05:00
|
|
|
RifReaderRftInterface* rftReader() override;
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setIncludeRestartFiles( bool includeRestartFiles );
|
2018-03-19 05:02:22 -05:00
|
|
|
|
2021-04-08 08:53:38 -05:00
|
|
|
static RifReaderEclipseSummary* findRelatedFilesAndCreateReader( const QString& headerFileName,
|
|
|
|
bool includeRestartFiles,
|
|
|
|
RiaThreadSafeLogger* threadSafeLogger );
|
|
|
|
|
|
|
|
static RifReaderEclipseRft* findRftDataAndCreateReader( const QString& headerFileName );
|
2016-05-31 06:42:27 -05:00
|
|
|
|
2017-09-22 02:11:39 -05:00
|
|
|
private:
|
|
|
|
cvf::ref<RifReaderEclipseSummary> m_summaryFileReader;
|
2019-07-25 00:38:46 -05:00
|
|
|
cvf::ref<RifReaderEclipseRft> m_summaryEclipseRftReader;
|
2018-03-19 05:02:22 -05:00
|
|
|
caf::PdmField<bool> m_includeRestartFiles;
|
2017-09-22 02:11:39 -05:00
|
|
|
};
|