From 33a32c9c1a34b841c82db7e5494cc07c8aef4568 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A5l=20Hagen?= Date: Thu, 15 Oct 2015 16:11:03 +0200 Subject: [PATCH] (#541) Added some access methods to NRLib::LasWell to be used when exporting --- ThirdParty/NRLib/nrlib/well/laswell.cpp | 20 ++++++++++++++++++++ ThirdParty/NRLib/nrlib/well/laswell.hpp | 6 ++++++ 2 files changed, 26 insertions(+) diff --git a/ThirdParty/NRLib/nrlib/well/laswell.cpp b/ThirdParty/NRLib/nrlib/well/laswell.cpp index 2be003df25..4961805341 100644 --- a/ThirdParty/NRLib/nrlib/well/laswell.cpp +++ b/ThirdParty/NRLib/nrlib/well/laswell.cpp @@ -544,6 +544,11 @@ void LasWell::WriteLasLine(std::ofstream & file, file << mnemonic << " ." << units << " " << data << " : " << description << "\n"; } +void LasWell::setDepthUnit(const std::string& depthUnit) +{ + depth_unit_ = depthUnit; +}; + std::string LasWell::depthUnit() const { return depth_unit_; @@ -559,3 +564,18 @@ std::string LasWell::unitName(const std::string& logName) const return ""; }; + +void NRLib::LasWell::setVersionInfo(const std::string& versionInfo) +{ + version_ = versionInfo; +} + +void NRLib::LasWell::setStartDepth(double startDepth) +{ + start_depth_ = startDepth; +} + +void NRLib::LasWell::setStopDepth(double stopDepth) +{ + stop_depth_ = stopDepth; +} diff --git a/ThirdParty/NRLib/nrlib/well/laswell.hpp b/ThirdParty/NRLib/nrlib/well/laswell.hpp index b9d667ff47..dc5b856a1a 100644 --- a/ThirdParty/NRLib/nrlib/well/laswell.hpp +++ b/ThirdParty/NRLib/nrlib/well/laswell.hpp @@ -53,9 +53,15 @@ public: void WriteToFile(const std::string & filename, const std::vector & comment_header); + void setDepthUnit(const std::string& depthUnit); std::string depthUnit() const; + std::string unitName(const std::string& logName) const; + void setVersionInfo(const std::string& logName); + void setStartDepth(double startDepth); + void setStopDepth(double stopDepth); + private: void ReadHeader(const std::string & filename, std::ifstream & fin,