ResInsight/ApplicationLibCode/ProjectDataModel/WellLog/RimWellLogFile.h

52 lines
1.7 KiB
C
Raw Normal View History

2023-10-02 09:07:54 -05:00
/////////////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2023- Equinor 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"
#include "cafPdmField.h"
#include "cafPdmObject.h"
#include <QString>
2024-05-27 08:31:01 -05:00
#include "RimWellLog.h"
2023-10-02 09:07:54 -05:00
//==================================================================================================
///
///
//==================================================================================================
2024-05-27 08:31:01 -05:00
class RimWellLogFile : public RimWellLog
2023-10-02 09:07:54 -05:00
{
CAF_PDM_HEADER_INIT;
public:
RimWellLogFile();
~RimWellLogFile() override;
2024-05-27 08:31:01 -05:00
virtual void setFileName( const QString& fileName );
virtual QString fileName() const;
2023-10-02 09:07:54 -05:00
2024-05-27 08:31:01 -05:00
virtual bool readFile( QString* errorMessage ) = 0;
2023-10-02 09:07:54 -05:00
protected:
void defineEditorAttribute( const caf::PdmFieldHandle* field, QString uiConfigName, caf::PdmUiEditorAttribute* attribute ) override;
void fieldChangedByUi( const caf::PdmFieldHandle* changedField, const QVariant& oldValue, const QVariant& newValue ) override;
2024-05-27 08:31:01 -05:00
caf::PdmField<caf::FilePath> m_fileName;
2023-10-02 09:07:54 -05:00
};