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:
parent
479b2083ef
commit
39193396ae
@ -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;
|
||||
}
|
||||
|
@ -48,6 +48,8 @@ public:
|
||||
std::vector<double> depthValues() const;
|
||||
std::vector<double> values(const QString& name) const;
|
||||
|
||||
QString depthUnit() const;
|
||||
|
||||
private:
|
||||
void close();
|
||||
|
||||
|
3
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
3
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
@ -49,6 +49,9 @@ public:
|
||||
|
||||
void WriteToFile(const std::string & filename,
|
||||
const std::vector<std::string> & comment_header);
|
||||
|
||||
std::string depthUnit() const { return depth_unit_; };
|
||||
|
||||
private:
|
||||
void ReadHeader(const std::string & filename,
|
||||
std::ifstream & fin,
|
||||
|
Loading…
Reference in New Issue
Block a user