aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parsingtoolbox.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2016-11-28 00:36:15 +0100
committerRenaud G <renaud@rolisteam.org>2016-11-28 00:36:15 +0100
commit13e297604b00615d47352538e3c82ea1ac700d4c (patch)
tree567efe03594d261831897f03a7821c4c6eeac59b /parsingtoolbox.h
parentcdd1716bd1aa8d9bbd0137aa98ff24867b6b3a0e (diff)
downloadOneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.tar.gz
OneRoll-13e297604b00615d47352538e3c82ea1ac700d4c.zip
-Add API for copying a branch of execution node.
-Allow to use if node several times.
Diffstat (limited to 'parsingtoolbox.h')
-rw-r--r--parsingtoolbox.h9
1 files changed, 8 insertions, 1 deletions
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<QString, QString> *getVariableHash();
static void setVariableHash(QHash<QString, QString> *variableHash);
-
+ /**
+ * @brief readConditionType
+ * @param str
+ * @return
+ */
+ static IfNode::ConditionType readConditionType(QString &str);
private:
QMap<QString,BooleanCondition::LogicOperator>* m_logicOp;