20 #ifndef OPM_RPT_KEYWORD_NORMALISATION_HPP_INCLUDED 21 #define OPM_RPT_KEYWORD_NORMALISATION_HPP_INCLUDED 24 #include <initializer_list> 33 class KeywordLocation;
66 : integerControlHandler_ { std::move(integerControlHandler) }
67 , isMnemonic_ { std::move(isMnemonic) }
83 const ParseContext& parseContext,
84 ErrorGuard& errors)
const;
112 MnemonicMap parseMnemonics(
const std::vector<std::string>& deckItems,
113 const KeywordLocation& location,
114 const ParseContext& parseContext,
115 ErrorGuard& errors)
const;
140 const ParseContext& parseContext,
141 ErrorGuard& errors)
const;
146 #endif // OPM_RPT_KEYWORD_NORMALISATION_HPP_INCLUDED Normalise disparate input sources into sequence of report keyword mnemonics and associate values...
Definition: RPTKeywordNormalisation.hpp:41
std::vector< std::pair< std::string, int > > MnemonicMap
Mnemonic sequence. Preserves input ordering.
Definition: RPTKeywordNormalisation.hpp:45
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition: Exceptions.hpp:30
std::function< bool(const std::string &)> MnemonicPredicate
Mnemonic validity predicate.
Definition: RPTKeywordNormalisation.hpp:52
MnemonicMap normaliseKeyword(const DeckKeyword &kw, const ParseContext &parseContext, ErrorGuard &errors) const
Normalise report keyword specification into sequence of mnemonics and associate integer values...
Definition: RPTKeywordNormalisation.cpp:107
RPTKeywordNormalisation(IntegerControlHandler integerControlHandler, MnemonicPredicate isMnemonic)
Constructor.
Definition: RPTKeywordNormalisation.hpp:64
std::function< MnemonicMap(const std::vector< int > &)> IntegerControlHandler
Callback for translating a sequence of integer controls into a sequence of mnemonics.
Definition: RPTKeywordNormalisation.hpp:49