mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
(#541) Added some access methods to NRLib::LasWell to be used when exporting
This commit is contained in:
parent
958357b563
commit
33a32c9c1a
20
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
20
ThirdParty/NRLib/nrlib/well/laswell.cpp
vendored
@ -544,6 +544,11 @@ void LasWell::WriteLasLine(std::ofstream & file,
|
|||||||
file << mnemonic << " ." << units << " " << data << " : " << description << "\n";
|
file << mnemonic << " ." << units << " " << data << " : " << description << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LasWell::setDepthUnit(const std::string& depthUnit)
|
||||||
|
{
|
||||||
|
depth_unit_ = depthUnit;
|
||||||
|
};
|
||||||
|
|
||||||
std::string LasWell::depthUnit() const
|
std::string LasWell::depthUnit() const
|
||||||
{
|
{
|
||||||
return depth_unit_;
|
return depth_unit_;
|
||||||
@ -559,3 +564,18 @@ std::string LasWell::unitName(const std::string& logName) const
|
|||||||
|
|
||||||
return "";
|
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;
|
||||||
|
}
|
||||||
|
6
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
6
ThirdParty/NRLib/nrlib/well/laswell.hpp
vendored
@ -53,9 +53,15 @@ public:
|
|||||||
void WriteToFile(const std::string & filename,
|
void WriteToFile(const std::string & filename,
|
||||||
const std::vector<std::string> & comment_header);
|
const std::vector<std::string> & comment_header);
|
||||||
|
|
||||||
|
void setDepthUnit(const std::string& depthUnit);
|
||||||
std::string depthUnit() const;
|
std::string depthUnit() const;
|
||||||
|
|
||||||
std::string unitName(const std::string& logName) const;
|
std::string unitName(const std::string& logName) const;
|
||||||
|
|
||||||
|
void setVersionInfo(const std::string& logName);
|
||||||
|
void setStartDepth(double startDepth);
|
||||||
|
void setStopDepth(double stopDepth);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void ReadHeader(const std::string & filename,
|
void ReadHeader(const std::string & filename,
|
||||||
std::ifstream & fin,
|
std::ifstream & fin,
|
||||||
|
Loading…
Reference in New Issue
Block a user