Extract formulas from final measurements.
--HG-- branch : feature
This commit is contained in:
parent
5d2e584d2f
commit
657c445e46
|
@ -1761,6 +1761,7 @@ QVector<VFormulaField> VAbstractPattern::ListExpressions() const
|
|||
list << ListOperationExpressions();
|
||||
list << ListPathExpressions();
|
||||
list << ListPieceExpressions();
|
||||
list << ListFinalMeasurementsExpressions();
|
||||
|
||||
return list;
|
||||
}
|
||||
|
@ -1997,6 +1998,26 @@ QVector<VFormulaField> VAbstractPattern::ListPieceExpressions() const
|
|||
return expressions;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
QVector<VFormulaField> VAbstractPattern::ListFinalMeasurementsExpressions() const
|
||||
{
|
||||
QVector<VFormulaField> expressions;
|
||||
const QDomNodeList list = elementsByTagName(TagFMeasurement);
|
||||
for (int i=0; i < list.size(); ++i)
|
||||
{
|
||||
const QDomElement dom = list.at(i).toElement();
|
||||
if (dom.isNull())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
// Each tag can contains several attributes.
|
||||
ReadExpressionAttribute(expressions, dom, AttrFormula);
|
||||
}
|
||||
|
||||
return expressions;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------------------------------
|
||||
bool VAbstractPattern::IsVariable(const QString &token) const
|
||||
{
|
||||
|
|
|
@ -446,6 +446,7 @@ private:
|
|||
QVector<VFormulaField> ListPathExpressions() const;
|
||||
QVector<VFormulaField> ListGrainlineExpressions(const QDomElement &element) const;
|
||||
QVector<VFormulaField> ListPieceExpressions() const;
|
||||
QVector<VFormulaField> ListFinalMeasurementsExpressions() const;
|
||||
|
||||
bool IsVariable(const QString& token) const;
|
||||
bool IsPostfixOperator(const QString& token) const;
|
||||
|
|
Loading…
Reference in New Issue
Block a user