diff options
| author | 2016-04-15 10:54:38 +0200 | |
|---|---|---|
| committer | 2016-04-15 10:54:38 +0200 | |
| commit | e55d89b50abd103dcc860faba2c7719064b5aa46 (patch) | |
| tree | c47cf70d0d3b35c5941f80b3728dc596f572bf5a /parsingtoolbox.h | |
| parent | 7329c3414954112da46ad1af1d900ded0363ba9c (diff) | |
| parent | 711d11ae25c7aa86ae675fd849c7240c9e2cf298 (diff) | |
| download | OneRoll-e55d89b50abd103dcc860faba2c7719064b5aa46.tar.gz OneRoll-e55d89b50abd103dcc860faba2c7719064b5aa46.zip | |
Merge branch 'master' of github.com:Rolisteam/DiceParser
Diffstat (limited to 'parsingtoolbox.h')
| -rw-r--r-- | parsingtoolbox.h | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/parsingtoolbox.h b/parsingtoolbox.h index 4aeb16e..3046570 100644 --- a/parsingtoolbox.h +++ b/parsingtoolbox.h @@ -1,6 +1,6 @@ /*************************************************************************** * Copyright (C) 2014 by Renaud Guezennec * -* http://renaudguezennec.homelinux.org/accueil,3.html * +* http://www.rolisteam.org/contact * * * * This file is part of DiceParser * * * @@ -95,7 +95,13 @@ public: */ static bool readNumber(QString& str, qint64& myNumber); - + /** + * @brief readVariable + * @param str + * @param myNumber + * @return + */ + static bool readVariable(QString& str,qint64& myNumber); /** * @brief readOpenParentheses * @param str @@ -154,11 +160,19 @@ public: bool readArithmeticOperator(QString& str, ScalarOperatorNode::ArithmeticOperator& op); static void readPainterParameter(PainterNode *painter, QString &str); + + static QHash<QString, QString> *getVariableHash(); + static void setVariableHash(QHash<QString, QString> *variableHash); + private: - QMap<QString,BooleanCondition::LogicOperator>* m_logicOp; - QMap<QString,CompositeValidator::LogicOperation>* m_logicOperation; + + QMap<QString,BooleanCondition::LogicOperator>* m_logicOp; + QMap<QString,CompositeValidator::LogicOperation>* m_logicOperation; QMap<QString,OperationCondition::ConditionOperator>* m_conditionOperation; QHash<QString,ScalarOperatorNode::ArithmeticOperator>* m_arithmeticOperation; + + + static QHash<QString,QString>* m_variableHash; }; #endif // PARSINGTOOLBOX_H |