2015-09-14 09:33:28 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// 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 "cafPdmObject.h"
|
|
|
|
#include "cafPdmField.h"
|
|
|
|
#include "cafPdmChildArrayField.h"
|
|
|
|
|
2015-09-15 11:07:53 -05:00
|
|
|
#include "RigWellLogFile.h"
|
|
|
|
|
|
|
|
#include "cvfBase.h"
|
2015-09-14 09:33:28 -05:00
|
|
|
|
2015-09-15 06:21:30 -05:00
|
|
|
class RimWellLog;
|
2015-09-14 09:33:28 -05:00
|
|
|
|
2015-09-15 11:07:53 -05:00
|
|
|
class QString;
|
2015-09-14 09:33:28 -05:00
|
|
|
|
|
|
|
//==================================================================================================
|
|
|
|
///
|
|
|
|
///
|
|
|
|
//==================================================================================================
|
2015-09-16 09:06:06 -05:00
|
|
|
class RimWellLogFile : public caf::PdmObject
|
2015-09-14 09:33:28 -05:00
|
|
|
{
|
|
|
|
CAF_PDM_HEADER_INIT;
|
|
|
|
|
|
|
|
public:
|
2015-09-16 09:06:06 -05:00
|
|
|
RimWellLogFile();
|
|
|
|
virtual ~RimWellLogFile();
|
2015-09-14 09:33:28 -05:00
|
|
|
|
|
|
|
void setFileName(const QString& fileName);
|
|
|
|
bool readFile();
|
|
|
|
|
|
|
|
QString wellName() const;
|
|
|
|
virtual caf::PdmFieldHandle* userDescriptionField() { return &m_name; }
|
|
|
|
|
2015-09-16 09:06:06 -05:00
|
|
|
RigWellLogFile* wellLogFile() { return m_wellLogDataFile.p(); }
|
2015-09-15 08:18:28 -05:00
|
|
|
|
2015-09-16 09:06:06 -05:00
|
|
|
const caf::PdmChildArrayField<RimWellLog*>* wellLogChannelNames() const { return &m_wellLogChannelNames; }
|
2015-09-16 08:31:04 -05:00
|
|
|
|
2015-09-14 09:33:28 -05:00
|
|
|
private:
|
2015-09-16 09:06:06 -05:00
|
|
|
caf::PdmChildArrayField<RimWellLog*> m_wellLogChannelNames;
|
2015-09-14 09:33:28 -05:00
|
|
|
|
|
|
|
private:
|
2015-09-16 09:06:06 -05:00
|
|
|
cvf::ref<RigWellLogFile> m_wellLogDataFile;
|
2015-09-15 11:07:53 -05:00
|
|
|
caf::PdmField<QString> m_wellName;
|
|
|
|
caf::PdmField<QString> m_fileName;
|
|
|
|
caf::PdmField<QString> m_name;
|
2015-09-14 09:33:28 -05:00
|
|
|
};
|