aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/parsingtoolbox.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-08-20 00:30:15 +0200
committerRenaud G <renaud@rolisteam.org>2015-08-20 00:30:15 +0200
commitf3ed92235184ec754bbf96eadf0693ae67e5de1b (patch)
tree33b812d8844ae4484c6be48e01883f2e1b844462 /parsingtoolbox.h
parent129b908eb933c4cedb0a1c1bfde5b83620c46d3e (diff)
downloadOneRoll-f3ed92235184ec754bbf96eadf0693ae67e5de1b.tar.gz
OneRoll-f3ed92235184ec754bbf96eadf0693ae67e5de1b.zip
Add compositevalidator to explose operator.
Diffstat (limited to 'parsingtoolbox.h')
-rw-r--r--parsingtoolbox.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/parsingtoolbox.h b/parsingtoolbox.h
index cb97708..3d37f7b 100644
--- a/parsingtoolbox.h
+++ b/parsingtoolbox.h
@@ -27,6 +27,7 @@
#include "node/executionnode.h"
#include "node/dicerollernode.h"
#include "booleancondition.h"
+#include "compositevalidator.h"
#include "range.h"
/**
@@ -71,7 +72,12 @@ public:
* @return
*/
Validator* readValidator(QString& str);
-
+ /**
+ * @brief readCompositeValidator
+ * @param str
+ * @return
+ */
+ Validator* readCompositeValidator(QString& str);
/**
* @brief readNumber read number in the given str and remove from the string the read character.
@@ -79,7 +85,7 @@ public:
* @param myNumber reference to the found number
* @return true, succeed to read number, false otherwise.
*/
- bool readNumber(QString& str, int& myNumber);
+ bool readNumber(QString& str, qint64& myNumber);
/**
@@ -123,7 +129,7 @@ public:
* @param end
* @return
*/
- bool readDiceRange(QString& str,int& start, int& end);
+ bool readDiceRange(QString& str,qint64& start, qint64& end);
/**
* @brief readListOperator
* @param str
@@ -133,9 +139,11 @@ public:
void readProbability(QStringList& str,QList<Range>& ranges);
+ bool readLogicOperation(QString& str,CompositeValidator::LogicOperation& op);
private:
QMap<QString,BooleanCondition::LogicOperator>* m_logicOp;
+ QMap<QString,CompositeValidator::LogicOperation>* m_logicOperation;
};
#endif // PARSINGTOOLBOX_H