Files
opm-common/opm/parser/eclipse/EclipseState/Summary/Summary.hpp
Jørgen Kvalsvik 74136ab348 Interalise Summary section of Deck
Builds an internal representation, based on ERT's smspec_node, of the
SUMMARY section of an input file, that can be used to determine what
data from a simulation to output.

In essence, this is a simple map from DeckKeyword to smspec_node that
carries over the interesting data. Introduces two higher order functions
(map and concat) to aid in this, thoroughly isolating each case.

Depends on ert pull request #1013
https://github.com/Ensembles/ert/pull/1013
2016-02-19 13:04:59 +01:00

49 lines
1.2 KiB
C++

/*
Copyright 2015 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_SUMMARY_HPP
#define OPM_SUMMARY_HPP
#include <vector>
#include <ert/ecl/Smspec.hpp>
namespace Opm {
class Deck;
class EclipseState;
class ParserKeyword;
class Summary {
public:
typedef std::vector< ERT::smspec_node >::const_iterator const_iterator;
Summary( const Deck&, const EclipseState& );
const_iterator begin() const;
const_iterator end() const;
private:
std::vector< ERT::smspec_node > keywords;
};
} //namespace Opm
#endif