2017-09-14 07:34:12 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Copyright (C) 2017- Statoil ASA
|
2019-09-06 03:40:57 -05:00
|
|
|
//
|
2017-09-14 07:34:12 -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-09-14 07:34:12 -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-09-14 07:34:12 -05:00
|
|
|
// for more details.
|
|
|
|
//
|
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-09-19 08:25:48 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-09-14 08:44:01 -05:00
|
|
|
#include "cafPdmChildArrayField.h"
|
2019-09-06 03:40:57 -05:00
|
|
|
#include "cafPdmObject.h"
|
2017-09-14 08:44:01 -05:00
|
|
|
|
2019-08-20 08:09:13 -05:00
|
|
|
class RimObservedFmuRftData;
|
|
|
|
class RimObservedSummaryData;
|
2023-01-13 08:26:39 -06:00
|
|
|
class RimPressureDepthData;
|
2017-09-14 08:44:01 -05:00
|
|
|
|
2017-09-14 08:59:33 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2019-09-06 03:40:57 -05:00
|
|
|
///
|
2017-09-14 08:59:33 -05:00
|
|
|
//--------------------------------------------------------------------------------------------------
|
2017-09-14 08:44:01 -05:00
|
|
|
class RimObservedDataCollection : public caf::PdmObject
|
2017-09-14 07:34:12 -05:00
|
|
|
{
|
2017-09-14 08:44:01 -05:00
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
2017-09-14 07:34:12 -05:00
|
|
|
public:
|
|
|
|
RimObservedDataCollection();
|
2018-10-18 12:45:57 -05:00
|
|
|
~RimObservedDataCollection() override;
|
2017-09-14 07:34:12 -05:00
|
|
|
|
2023-02-26 03:48:40 -06:00
|
|
|
void removeObservedSummaryData( RimObservedSummaryData* observedSummaryData );
|
|
|
|
void removeObservedFmuRftData( RimObservedFmuRftData* observedFmuRftData );
|
|
|
|
RimObservedSummaryData* createAndAddRsmObservedSummaryDataFromFile( const QString& fileName, QString* errorText = nullptr );
|
|
|
|
RimObservedSummaryData*
|
2023-04-13 00:05:53 -05:00
|
|
|
createAndAddCvsObservedSummaryDataFromFile( const QString& fileName, bool useSavedFieldsValuesInDialog, QString* errorText = nullptr );
|
2019-09-06 03:40:57 -05:00
|
|
|
RimObservedFmuRftData* createAndAddFmuRftDataFromPath( const QString& directoryPath );
|
2023-01-13 08:26:39 -06:00
|
|
|
RimPressureDepthData* createAndAddPressureDepthDataFromPath( const QString& fileName );
|
2019-09-06 03:40:57 -05:00
|
|
|
std::vector<RimObservedSummaryData*> allObservedSummaryData() const;
|
|
|
|
std::vector<RimObservedFmuRftData*> allObservedFmuRftData() const;
|
2023-01-13 08:26:39 -06:00
|
|
|
std::vector<RimPressureDepthData*> allPressureDepthData() const;
|
2017-09-18 03:44:28 -05:00
|
|
|
|
2017-11-22 13:34:18 -06:00
|
|
|
private:
|
2019-09-06 03:40:57 -05:00
|
|
|
bool fileExists( const QString& fileName, QString* errorText = nullptr );
|
2023-03-13 08:47:44 -05:00
|
|
|
void onChildDeleted( caf::PdmChildArrayFieldHandle* childArray, std::vector<caf::PdmObjectHandle*>& referringObjects ) override;
|
2017-11-22 13:34:18 -06:00
|
|
|
|
2017-09-14 07:34:12 -05:00
|
|
|
private:
|
2019-08-20 08:09:13 -05:00
|
|
|
caf::PdmChildArrayField<RimObservedSummaryData*> m_observedDataArray;
|
|
|
|
caf::PdmChildArrayField<RimObservedFmuRftData*> m_observedFmuRftArray;
|
2023-01-13 08:26:39 -06:00
|
|
|
caf::PdmChildArrayField<RimPressureDepthData*> m_observedPressureDepthArray;
|
2017-09-14 07:34:12 -05:00
|
|
|
};
|