#2003 Observed Data : Use time with highest available resolution

This commit is contained in:
Magne Sjaastad
2017-11-06 14:26:25 +01:00
parent 97d67f2d49
commit 9d06ef857e
5 changed files with 121 additions and 60 deletions

View File

@@ -106,14 +106,44 @@ std::vector<std::vector<std::string>> RifEclipseUserDataKeywordTools::buildColum
return tableHeaderText;
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataKeywordTools::isTime(const std::string& identifier)
{
return (identifier == "TIME");
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataKeywordTools::isDate(const std::string& identifier)
{
if (identifier.find("DATE") != std::string::npos) return true;
return (identifier == "DATE");
}
return false;
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataKeywordTools::isDays(const std::string& identifier)
{
return (identifier.find("DAYS") != std::string::npos);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataKeywordTools::isYears(const std::string& identifier)
{
return (identifier.find("YEARS") != std::string::npos);
}
//--------------------------------------------------------------------------------------------------
///
//--------------------------------------------------------------------------------------------------
bool RifEclipseUserDataKeywordTools::isYearX(const std::string& identifier)
{
return (identifier.find("YEARX") != std::string::npos);
}
//--------------------------------------------------------------------------------------------------