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,