2017-07-27 03:39:59 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017 Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-07-27 03:39:59 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-07-27 03:39:59 -05:00
|
|
|
// 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.
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
|
|
|
// See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
|
2017-07-27 03:39:59 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#pragma once
|
2017-07-31 02:24:09 -05:00
|
|
|
|
2017-07-27 03:39:59 -05:00
|
|
|
#include "RicfCommandObject.h"
|
|
|
|
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
|
2017-07-31 02:24:09 -05:00
|
|
|
//==================================================================================================
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//
|
|
|
|
//==================================================================================================
|
2017-07-27 03:39:59 -05:00
|
|
|
class RicfSetTimeStep : public RicfCommandObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
|
|
|
RicfSetTimeStep();
|
|
|
|
|
2019-09-06 03:40:57 -05:00
|
|
|
void setCaseId( int caseId );
|
2019-09-23 04:50:33 -05:00
|
|
|
void setViewId( int viewId );
|
2019-09-06 03:40:57 -05:00
|
|
|
void setTimeStepIndex( int timeStepIndex );
|
2019-05-20 06:21:02 -05:00
|
|
|
|
2020-03-10 08:11:22 -05:00
|
|
|
caf::PdmScriptResponse execute() override;
|
2017-07-27 03:39:59 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
caf::PdmField<int> m_caseId;
|
2019-09-23 04:50:33 -05:00
|
|
|
caf::PdmField<int> m_viewId;
|
2017-07-27 03:39:59 -05:00
|
|
|
caf::PdmField<int> m_timeStepIndex;
|
|
|
|
};
|