mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-09 07:45:19 -06:00
64 lines
2.4 KiB
C++
64 lines
2.4 KiB
C++
/////////////////////////////////////////////////////////////////////////////////
|
|||
|
|
//
|
||
|
|
// Copyright (C) 2025 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.
|
||
|
|
//
|
||
|
|
/////////////////////////////////////////////////////////////////////////////////
|
||
|
|
|
||
|
|
#include "RimWellLogChannelData.h"
|
||
|
|
|
||
|
|
CAF_PDM_SOURCE_INIT( RimWellLogChannelData, "WellLogChannelData" );
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
RimWellLogChannelData::RimWellLogChannelData()
|
||
|
|
{
|
||
|
|
CAF_PDM_InitObject( "Well Log Channel Data", "", "", "Well Log Channel Data" );
|
||
|
|
|
||
|
|
CAF_PDM_InitField( &m_name, "Name", QString(), "Name" );
|
||
|
|
CAF_PDM_InitField( &m_values, "Values", {}, "Values" );
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
void RimWellLogChannelData::setName( const QString& name )
|
||
|
|
{
|
||
|
|
m_name = name;
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
QString RimWellLogChannelData::name() const
|
||
|
|
{
|
||
|
|
return m_name();
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
void RimWellLogChannelData::setValues( const std::vector<double>& values )
|
||
|
|
{
|
||
|
|
m_values = values;
|
||
|
|
}
|
||
|
|
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
///
|
||
|
|
//--------------------------------------------------------------------------------------------------
|
||
|
|
std::vector<double> RimWellLogChannelData::values() const
|
||
|
|
{
|
||
|
|
return m_values();
|
||
|
|
}
|