diff options
| author | 2015-06-09 08:44:49 +0200 | |
|---|---|---|
| committer | 2015-06-09 08:44:49 +0200 | |
| commit | 2d9fe10724dc1d5de86e63670536b9a1b6599ba1 (patch) | |
| tree | 5341bf5d7f7b3236cac12791ea547644302f987b /parsingtoolbox.h | |
| parent | 88e5130bd86992819a036ef982733b5ee344d656 (diff) | |
| download | OneRoll-2d9fe10724dc1d5de86e63670536b9a1b6599ba1.tar.gz OneRoll-2d9fe10724dc1d5de86e63670536b9a1b6599ba1.zip | |
-add method to read list with probability value. It sets range for all
values in List node.
Diffstat (limited to 'parsingtoolbox.h')
| -rw-r--r-- | parsingtoolbox.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/parsingtoolbox.h b/parsingtoolbox.h index 5d38919..cb97708 100644 --- a/parsingtoolbox.h +++ b/parsingtoolbox.h @@ -36,6 +36,7 @@ class ParsingToolBox { public: + enum LIST_OPERATOR {NONE,UNIQUE}; /** * @brief ParsingToolBox */ @@ -100,7 +101,7 @@ public: * @param list * @return */ - bool readList(QString& str,QStringList& list); + bool readList(QString& str,QStringList& list, QList<Range>& ranges); /** * @brief isValidValidator * @param previous @@ -123,6 +124,15 @@ public: * @return */ bool readDiceRange(QString& str,int& start, int& end); + /** + * @brief readListOperator + * @param str + * @return + */ + LIST_OPERATOR readListOperator(QString& str); + + void readProbability(QStringList& str,QList<Range>& ranges); + private: QMap<QString,BooleanCondition::LogicOperator>* m_logicOp; |