mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add result type and create and use custom legend if possible
* Update submodule * Use postfix functions and add custom color legend * Add type to RigEclipseResultAddress Read types from ROFF and create default legend based on type or custom created legend. * Use caseId to connect legend configuration to result in a case
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include <QFile>
|
||||
#include <QTextStream>
|
||||
|
||||
#include "roffcpp/src/Parser.hpp"
|
||||
#include "roffcpp/src/Reader.hpp"
|
||||
|
||||
#include <fstream>
|
||||
@@ -41,8 +42,8 @@ void RifRoffReader::readCodeNames( const QString& filename, const QString& param
|
||||
std::vector<std::pair<std::string, roff::Token::Kind>> arrayTypes = reader.getNamedArrayTypes();
|
||||
|
||||
// Find array types by keywords
|
||||
const std::string codeNamesKeyword = parameterTagName.toStdString() + ".codeNames";
|
||||
const std::string codeValuesKeyword = parameterTagName.toStdString() + ".codeValues";
|
||||
const std::string codeNamesKeyword = parameterTagName.toStdString() + roff::Parser::postFixCodeNames();
|
||||
const std::string codeValuesKeyword = parameterTagName.toStdString() + roff::Parser::postFixCodeValues();
|
||||
auto codeNamesItr = std::find_if( arrayTypes.begin(),
|
||||
arrayTypes.end(),
|
||||
[&codeNamesKeyword]( const auto& arrayType ) { return arrayType.first == codeNamesKeyword; } );
|
||||
|
||||
Reference in New Issue
Block a user