From f3ed92235184ec754bbf96eadf0693ae67e5de1b Mon Sep 17 00:00:00 2001 From: Renaud G Date: Thu, 20 Aug 2015 00:30:15 +0200 Subject: Add compositevalidator to explose operator. --- parsingtoolbox.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'parsingtoolbox.h') 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& ranges); + bool readLogicOperation(QString& str,CompositeValidator::LogicOperation& op); private: QMap* m_logicOp; + QMap* m_logicOperation; }; #endif // PARSINGTOOLBOX_H -- cgit v1.2.3-70-g09d2