EclipseConfig.hpp
Go to the documentation of this file.
1/*
2 Copyright 2016 Statoil ASA.
3
4 This file is part of the Open Porous Media project (OPM).
5
6 OPM is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 OPM is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with OPM. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef OPM_ECLIPSE_CONFIG_HPP
21#define OPM_ECLIPSE_CONFIG_HPP
22
23#include <memory>
24
27
28namespace Opm {
29
30 class Deck;
31
33 {
34 public:
35 EclipseConfig() = default;
36 EclipseConfig(const Deck& deck);
37 EclipseConfig(const InitConfig& initConfig, const IOConfig& io_conf);
38
40
41 const InitConfig& init() const;
43 const IOConfig& io() const;
44 const InitConfig& getInitConfig() const;
45
46 bool operator==(const EclipseConfig& data) const;
47
48 template<class Serializer>
49 void serializeOp(Serializer& serializer)
50 {
51 m_initConfig.serializeOp(serializer);
52 io_config.serializeOp(serializer);
53 }
54
55 private:
56 InitConfig m_initConfig;
57 IOConfig io_config;
58 };
59}
60
61#endif // OPM_ECLIPSE_CONFIG_HPP
Definition: Deck.hpp:115
Definition: EclipseConfig.hpp:33
EclipseConfig(const InitConfig &initConfig, const IOConfig &io_conf)
EclipseConfig()=default
bool operator==(const EclipseConfig &data) const
void serializeOp(Serializer &serializer)
Definition: EclipseConfig.hpp:49
const IOConfig & io() const
const InitConfig & getInitConfig() const
static EclipseConfig serializeObject()
EclipseConfig(const Deck &deck)
const InitConfig & init() const
IOConfig & io()
Definition: IOConfig.hpp:147
void serializeOp(Serializer &serializer)
Definition: IOConfig.hpp:190
Definition: InitConfig.hpp:32
void serializeOp(Serializer &serializer)
Definition: InitConfig.hpp:61
Definition: Serializer.hpp:38
Definition: A.hpp:4
static std::string data()
Definition: exprtk.hpp:40022