mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#489) Added interface to get access to depth unit
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "RigWellLogFile.h"
|
||||
|
||||
#include "well.hpp"
|
||||
#include "laswell.hpp"
|
||||
|
||||
#include <QString>
|
||||
#include <QFileInfo>
|
||||
@@ -138,3 +139,19 @@ std::vector<double> RigWellLogFile::values(const QString& name) const
|
||||
|
||||
return std::vector<double>();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString RigWellLogFile::depthUnit() const
|
||||
{
|
||||
QString unit;
|
||||
|
||||
NRLib::LasWell* lasWell = dynamic_cast<NRLib::LasWell*>(m_wellLogFile);
|
||||
if (lasWell)
|
||||
{
|
||||
unit = QString::fromStdString(lasWell->depthUnit());
|
||||
}
|
||||
|
||||
return unit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user