///////////////////////////////////////////////////////////////////////////////// // // Copyright (C) 2011-2012 Statoil ASA, Ceetron AS // // ResInsight 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. // // ResInsight 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 at // for more details. // ///////////////////////////////////////////////////////////////////////////////// #pragma once #include "RifReaderInterface.h" #include "RigReservoirBuilderMock.h" class RifReaderInterfaceMock : public RifReaderInterface { public: RifReaderInterfaceMock(); virtual ~RifReaderInterfaceMock(); void setWorldCoordinates(cvf::Vec3d minWorldCoordinate, cvf::Vec3d maxWorldCoordinate); void setGridPointDimensions(const cvf::Vec3st& gridPointDimensions); void setResultInfo(size_t resultCount, size_t timeStepCount); void addLocalGridRefinement(const cvf::Vec3st& minCellPosition, const cvf::Vec3st& maxCellPosition, const cvf::Vec3st& singleCellRefinementFactors); virtual bool open( const QString& fileName, RigReservoir* reservoir ); virtual void close(); virtual const QStringList& staticResults() const; virtual const QStringList& dynamicResults() const; virtual size_t numTimeSteps() const; const QStringList& timeStepText() const; virtual bool staticResult( const QString& result, std::vector* values ); virtual bool dynamicResult( const QString& result, size_t stepIndex, std::vector* values ); private: void populateReservoir(RigReservoir* reservoir); QStringList m_staticResults; QStringList m_dynamicResults; QStringList m_timeStepTexts; RigReservoirBuilderMock m_reservoirBuilder; cvf::ref m_reservoir; };