(#541) Using two parameters when adding well info (parameter name and value)

This commit is contained in:
Pål Hagen 2015-10-16 13:35:09 +02:00
parent 0a7e971577
commit c2f0163eef
2 changed files with 9 additions and 3 deletions

View File

@ -580,7 +580,12 @@ void NRLib::LasWell::setStopDepth(double stopDepth)
stop_depth_ = stopDepth;
}
void NRLib::LasWell::addWellInfo(const std::string& wellInfo)
void NRLib::LasWell::addWellInfo(const std::string& parameter, const std::string& value)
{
well_info_.push_back(wellInfo);
std::string info = parameter;
info += " : ";
info += value;
info += " :";
well_info_.push_back(info);
}

View File

@ -61,7 +61,8 @@ public:
void setVersionInfo(const std::string& logName);
void setStartDepth(double startDepth);
void setStopDepth(double stopDepth);
void addWellInfo(const std::string& wellInfo);
void addWellInfo(const std::string& parameter, const std::string& value);
private:
void ReadHeader(const std::string & filename,