My Project
Loading...
Searching...
No Matches
TableSchema.hpp
1/*
2 Copyright 2015 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
21#ifndef OPM_TABLE_SCHEMA_HPP
22#define OPM_TABLE_SCHEMA_HPP
23
24#include <string>
25
26#include <opm/input/eclipse/EclipseState/Tables/ColumnSchema.hpp>
27#include <opm/input/eclipse/EclipseState/Util/OrderedMap.hpp>
28
29namespace Opm {
30
32 public:
33 static TableSchema serializationTestObject();
34
35 void addColumn( ColumnSchema );
36 const ColumnSchema& getColumn( const std::string& name ) const;
37 const ColumnSchema& getColumn( size_t columnIndex ) const;
38 bool hasColumn(const std::string&) const;
39
40 /* Number of columns */
41 size_t size() const;
42
43 bool operator==(const TableSchema& data) const;
44
45 template<class Serializer>
46 void serializeOp(Serializer& serializer)
47 {
48 serializer(m_columns);
49 }
50
51 private:
53 };
54}
55
56#endif
57
Definition ColumnSchema.hpp:31
A map with iteration in the order of insertion.
Definition OrderedMap.hpp:121
Class for (de-)serializing.
Definition Serializer.hpp:84
Definition TableSchema.hpp:31
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30