2017-09-07 05:01:40 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2016- Statoil ASA
|
|
|
|
//
|
|
|
|
// 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 <http://www.gnu.org/licenses/gpl.html>
|
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "cafPdmChildArrayField.h"
|
2017-09-07 09:08:13 -05:00
|
|
|
#include "cafPdmField.h"
|
2017-09-07 05:01:40 -05:00
|
|
|
#include "cafPdmObject.h"
|
|
|
|
|
2017-09-07 06:00:53 -05:00
|
|
|
#include <vector>
|
|
|
|
|
2017-09-07 05:01:40 -05:00
|
|
|
class RimSummaryCase;
|
|
|
|
|
|
|
|
class RimSummaryCaseCollection : public caf::PdmObject
|
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
public:
|
|
|
|
RimSummaryCaseCollection();
|
|
|
|
virtual ~RimSummaryCaseCollection();
|
|
|
|
|
2017-09-08 08:26:13 -05:00
|
|
|
void removeCase(RimSummaryCase* summaryCase);
|
2017-09-07 05:01:40 -05:00
|
|
|
void addCase(RimSummaryCase* summaryCase);
|
2017-09-08 08:26:13 -05:00
|
|
|
|
2017-09-18 07:49:31 -05:00
|
|
|
std::vector<RimSummaryCase*> allSummaryCases();
|
|
|
|
QString name() const { return m_name; }
|
2017-09-07 05:01:40 -05:00
|
|
|
|
|
|
|
private:
|
2017-09-08 08:26:13 -05:00
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField() override;
|
2017-09-07 05:01:40 -05:00
|
|
|
|
|
|
|
private:
|
|
|
|
caf::PdmChildArrayField<RimSummaryCase*> m_cases;
|
2017-09-07 09:08:13 -05:00
|
|
|
caf::PdmField<QString> m_name;
|
2017-09-07 05:01:40 -05:00
|
|
|
};
|