Files
ResInsight/ApplicationCode/ProjectDataModel/RimResultCase.h
T

69 lines
2.5 KiB
C++
Raw Normal View History

2012-05-18 09:45:23 +02:00
/////////////////////////////////////////////////////////////////////////////////
//
2014-09-23 15:04:57 +02:00
// Copyright (C) 2011- Statoil ASA
// Copyright (C) 2013- Ceetron Solutions AS
// Copyright (C) 2011-2012 Ceetron AS
2012-05-18 09:45:23 +02: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.
//
// 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
2013-03-22 16:40:41 +01:00
#include "RimCase.h"
2012-05-18 09:45:23 +02:00
2013-02-27 15:27:33 +01:00
class RifReaderInterface;
class RigMainGrid;
2012-05-18 09:45:23 +02:00
//==================================================================================================
//
2012-06-26 16:10:41 +02:00
//
2012-05-18 09:45:23 +02:00
//
//==================================================================================================
class RimResultCase : public RimCase
2012-05-18 09:45:23 +02:00
{
2012-06-26 16:10:41 +02:00
CAF_PDM_HEADER_INIT;
2012-05-18 09:45:23 +02:00
public:
RimResultCase();
virtual ~RimResultCase();
2012-05-18 09:45:23 +02:00
2013-12-02 08:55:13 +01:00
void setGridFileName(const QString& caseFileName);
void setCaseInfo(const QString& userDescription, const QString& caseFileName);
2012-06-26 16:10:41 +02:00
virtual bool openEclipseGridFile();
bool openAndReadActiveCellData(RigCaseData* mainEclipseCase);
2013-04-07 17:20:58 +02:00
void readGridDimensions(std::vector< std::vector<int> >& gridDimensions);
2012-05-18 09:45:23 +02:00
// Overrides from RimCase
virtual QString locationOnDisc() const;
virtual QString gridFileName() const { return caseFileName();}
virtual void updateFilePathsFromProjectPath(const QString& newProjectPath, const QString& oldProjectPath);
2012-05-18 09:45:23 +02:00
private:
cvf::ref<RifReaderInterface> createMockModel(QString modelName);
virtual void initAfterRead();
2013-06-26 09:02:37 +02:00
virtual void defineUiOrdering( QString uiConfigName, caf::PdmUiOrdering& uiOrdering );
// Fields:
caf::PdmField<QString> caseFileName;
// Obsolete field
caf::PdmField<QString> caseDirectory;
bool m_gridAndWellDataIsReadFromFile;
bool m_activeCellInfoIsReadFromFile;
2012-05-18 09:45:23 +02:00
};