/* Copyright 2021 Equinor 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 . */ #ifndef OPM_RESTART_FILE_VIEW_HPP #define OPM_RESTART_FILE_VIEW_HPP #include #include #include namespace Opm { namespace EclIO { class ERst; }} // Opm::EclIO namespace Opm { namespace EclIO { class RestartFileView { public: explicit RestartFileView(std::shared_ptr restart_file, const int report_step); ~RestartFileView(); RestartFileView(const RestartFileView& rhs) = delete; RestartFileView(RestartFileView&& rhs); RestartFileView& operator=(const RestartFileView& rhs) = delete; RestartFileView& operator=(RestartFileView&& rhs); std::size_t simStep() const; int reportStep() const; int occurrenceCount(const std::string& vector) const; template bool hasKeyword(const std::string& vector) const; template const std::vector& getKeyword(const std::string& vector, const int occurrence = 0) const; const std::vector& intehead() const; const std::vector& logihead() const; const std::vector& doubhead() const; private: class Implementation; std::unique_ptr pImpl_; }; }} // Opm::RestartIO #endif // OPM_RESTART_FILE_VIEW_HPP