Define long names for summary vectors in JSON files

This commit is contained in:
Magne Sjaastad
2024-10-13 13:28:28 +02:00
parent 0330c3cacd
commit 4719090b5f
11 changed files with 8337 additions and 2129 deletions

View File

@@ -35,6 +35,8 @@ public:
std::string longNameFromVectorName( const std::string& vectorName, bool returnVectorNameIfNotFound = false ) const;
void setQuantityInfos( const std::unordered_map<std::string, std::pair<std::string, std::string>>& infos );
private:
class RiuSummaryQuantityInfo
{
@@ -59,8 +61,8 @@ private:
RiuSummaryQuantityInfo quantityInfo( const std::string& vectorName, bool exactMatch = false ) const;
RifEclipseSummaryAddressDefines::SummaryCategory categoryFromVectorName( const std::string& vectorName, bool exactMatch = false ) const;
static std::unordered_map<std::string, RiuSummaryQuantityInfo> createInfoForEclipseKeywords();
static std::unordered_map<std::string, RiuSummaryQuantityInfo> createInfoFor6xKeywords();
static std::string stringFromEnum( RifEclipseSummaryAddressDefines::SummaryCategory category );
static RifEclipseSummaryAddressDefines::SummaryCategory enumFromString( const std::string& category );
private:
std::unordered_map<std::string, RiuSummaryQuantityInfo> m_summaryToDescMap;