mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-14 17:32:13 -05:00
#1985 Curve Calculator : Simplify interface to expression parser
This commit is contained in:
1 parent
650e29d6d5
commit
445048c24b
5 files changed
+17
-45
No files matched your search
+2
-18
@@ -36,14 +36,6 @@ ExpressionParser::~ExpressionParser()
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void ExpressionParser::setExpression(const QString& expression)
|
||||
{
|
||||
m_expressionParserImpl->setExpression(expression);
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
@@ -63,15 +55,7 @@ void ExpressionParser::assignVector(const QString& variableName, std::vector<dou
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
bool ExpressionParser::evaluate()
|
||||
bool ExpressionParser::evaluate(const QString& expressionText, QString* errorText)
|
||||
{
|
||||
return m_expressionParserImpl->evaluate();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
QString ExpressionParser::errorText()
|
||||
{
|
||||
return m_expressionParserImpl->errorText();
|
||||
return m_expressionParserImpl->evaluate(expressionText, errorText);
|
||||
}
|
||||
Reference in new issue
Block a user