diff options
| -rw-r--r-- | diceparser.h | 17 |
1 files 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<QString,DiceOperator>* m_mapDiceOp; |