Expression formatter.
More...
#include <ExpressionFormatter.h>
|
static QString | format (QString const &expression, QSharedPointer< ExpressionParser > parser, bool *expressionIsValid=nullptr) |
|
Expression formatter.
Definition at line 26 of file ExpressionFormatter.h.
◆ ExpressionFormatter()
ExpressionFormatter::ExpressionFormatter |
( |
QSharedPointer< ParameterFinder > | parameterFinder | ) |
|
Constructor.
- Parameters
-
[in] | parameterFinder | Parameter finder used to search the components parameters. |
◆ ~ExpressionFormatter()
ExpressionFormatter::~ExpressionFormatter |
( |
| ) |
|
◆ format()
static QString ExpressionFormatter::format |
( |
QString const & | expression, |
|
|
QSharedPointer< ExpressionParser > | parser, |
|
|
bool * | expressionIsValid = nullptr ) |
|
static |
Format an expression to its largest base number.
- Parameters
-
[in] | expression | The selected expression. |
[in] | parser | The used expression parser. |
[in] | expressionIsValid | Flag for informing of a valid expression. |
- Returns
- Formatted expression.
◆ formatReferringExpression()
QString ExpressionFormatter::formatReferringExpression |
( |
QString const & | expression | ) |
const |
Format an expression containing a reference to another parameter.
- Parameters
-
[in] | expression | The expression being worked on. |
- Returns
- Formatted expression.
The documentation for this class was generated from the following file: