2016-05-20 13:03:24 +02:00
|
|
|
/*
|
|
|
|
|
Copyright 2016 Statoil ASA.
|
|
|
|
|
|
|
|
|
|
This file is part of the Open Porous Media project (OPM).
|
|
|
|
|
|
|
|
|
|
OPM 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.
|
|
|
|
|
|
|
|
|
|
OPM 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 for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with OPM. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef OPM_ECLIPSE_CONFIG_HPP
|
|
|
|
|
#define OPM_ECLIPSE_CONFIG_HPP
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
2016-08-08 09:37:13 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/InitConfig/InitConfig.hpp>
|
2016-10-10 09:52:52 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/IOConfig/IOConfig.hpp>
|
2016-07-20 16:26:46 +02:00
|
|
|
#include <opm/parser/eclipse/EclipseState/IOConfig/RestartConfig.hpp>
|
2016-05-20 13:03:24 +02:00
|
|
|
|
|
|
|
|
namespace Opm {
|
2016-06-06 14:36:29 +02:00
|
|
|
|
|
|
|
|
class Deck;
|
2018-12-20 12:27:49 +01:00
|
|
|
class ParseContext;
|
2019-01-03 11:53:32 +01:00
|
|
|
class ErrorGuard;
|
2016-06-06 14:36:29 +02:00
|
|
|
|
2016-05-20 13:03:24 +02:00
|
|
|
class EclipseConfig
|
|
|
|
|
{
|
|
|
|
|
public:
|
2019-01-03 11:53:32 +01:00
|
|
|
EclipseConfig(const Deck& deck, const ParseContext& parseContext, ErrorGuard& errors);
|
2016-05-20 13:03:24 +02:00
|
|
|
|
2016-08-08 11:39:59 +02:00
|
|
|
const InitConfig& init() const;
|
|
|
|
|
const IOConfig& io() const;
|
|
|
|
|
IOConfig& io();
|
2016-07-20 16:26:46 +02:00
|
|
|
const RestartConfig& restart() const;
|
2016-08-08 09:37:13 +02:00
|
|
|
const InitConfig& getInitConfig() const;
|
2016-07-20 16:26:46 +02:00
|
|
|
const RestartConfig& getRestartConfig() const;
|
2016-05-20 13:03:24 +02:00
|
|
|
|
|
|
|
|
private:
|
2016-10-10 09:52:52 +02:00
|
|
|
IOConfig m_ioConfig;
|
2016-08-08 09:37:13 +02:00
|
|
|
const InitConfig m_initConfig;
|
2016-07-20 16:26:46 +02:00
|
|
|
RestartConfig m_restartConfig;
|
2016-05-20 13:03:24 +02:00
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endif // OPM_ECLIPSE_CONFIG_HPP
|