From 13e297604b00615d47352538e3c82ea1ac700d4c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Mon, 28 Nov 2016 00:36:15 +0100 Subject: -Add API for copying a branch of execution node. -Allow to use if node several times. --- parsingtoolbox.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'parsingtoolbox.h') diff --git a/parsingtoolbox.h b/parsingtoolbox.h index 7c5bc53..5d198be 100644 --- a/parsingtoolbox.h +++ b/parsingtoolbox.h @@ -32,6 +32,8 @@ #include "range.h" #include "node/scalaroperatornode.h" #include "node/paintnode.h" +#include "node/ifnode.h" + /** * @brief The ParsingToolBox is gathering many useful methods for dice parsing. * Its goal is to make the diceparser a bit lighter. @@ -170,7 +172,12 @@ public: static QHash *getVariableHash(); static void setVariableHash(QHash *variableHash); - + /** + * @brief readConditionType + * @param str + * @return + */ + static IfNode::ConditionType readConditionType(QString &str); private: QMap* m_logicOp; -- cgit v1.2.3-70-g09d2