#1467 Data structure for completions

This commit is contained in:
Bjørnar Grip Fjær
2017-05-10 16:52:51 +02:00
parent bf704caa16
commit 34f00b07ef
5 changed files with 304 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2015- Statoil ASA
// Copyright (C) 2015- Ceetron Solutions 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 <http://www.gnu.org/licenses/gpl.html>
// for more details.
//
/////////////////////////////////////////////////////////////////////////////////
#pragma once
#include "RimCheckableNamedObject.h"
#include "RimWellPathCompletion.h"
#include "cafPdmObject.h"
#include "cafPdmChildArrayField.h"
#include "cafPdmField.h"
//==================================================================================================
//
//
//
//==================================================================================================
class RimWellPathCompletionCollection : public RimCheckableNamedObject
{
CAF_PDM_HEADER_INIT;
public:
RimWellPathCompletionCollection();
~RimWellPathCompletionCollection();
void appendCompletion(RimWellPathCompletion* completion);
void importCompletionsFromFile(const QList<QString> filePaths);
void fieldChangedByUi(const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue);
caf::PdmChildArrayField<RimWellPathCompletion*> m_completions;
};