From e95a6a38e7be44fbe6dd03d4961bb9ddefea07f1 Mon Sep 17 00:00:00 2001 From: obiwankennedy Date: Fri, 17 Jan 2014 10:51:21 +0100 Subject: Update diceparser.h clean up parser --- diceparser.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/diceparser.h b/diceparser.h index 81eb207..92c7248 100644 --- a/diceparser.h +++ b/diceparser.h @@ -53,8 +53,21 @@ public: /** * @brief parseLine, method to call for starting the dice roll. It will parse the command and run the execution tree. * @param str dice command + * @return bool every thing is fine or not */ - void parseLine(QString str); + bool parseLine(QString str); + + + /** + * @brief Start running the execution tree + * + */ + void Start(); + + /** + * @brief displayResult + */ + void displayResult(); private: /** @@ -114,7 +127,7 @@ private: bool readLogicOperator(QString& str,BooleanCondition::LogicOperator& condition); - void displayResult(); + private: QMap* m_mapDiceOp; -- cgit v1.2.3-70-g09d2