checkDeck.hpp
Go to the documentation of this file.
1/*
2 Copyright 2014 Andreas Lauser
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_CHECK_DECK_HPP
21#define OPM_CHECK_DECK_HPP
22
23#include <memory>
24
25namespace Opm {
26
27 class Deck;
28 class Parser;
29 class ParseContext;
30 class ErrorGuard;
31
34
35 // KeywordSection check only has an effect of the SectionTopology test is enabled
37
39
40 AllChecks = 0xffff
41};
42
43// some semantical correctness checks of the deck. this method adds a warning to
44// the deck object if any issue is found ...
45bool checkDeck( const Deck& deck, const Parser& parser, const ParseContext& parseContext, ErrorGuard& errorGuard, size_t enabledChecks = AllChecks);
46
47}
48
49#endif
Definition: Deck.hpp:115
Definition: ErrorGuard.hpp:29
Definition: ParseContext.hpp:84
Definition: custom-opm-common/opm-common/opm/parser/eclipse/Parser/Parser.hpp:54
Definition: A.hpp:4
DeckChecks
Definition: checkDeck.hpp:32
@ AllChecks
Definition: checkDeck.hpp:40
@ SectionTopology
Definition: checkDeck.hpp:33
@ KeywordSection
Definition: checkDeck.hpp:36
@ UnknownKeywords
Definition: checkDeck.hpp:38
bool checkDeck(const Deck &deck, const Parser &parser, const ParseContext &parseContext, ErrorGuard &errorGuard, size_t enabledChecks=AllChecks)