diff options
| author | 2015-10-11 22:13:07 +0200 | |
|---|---|---|
| committer | 2015-10-11 22:13:07 +0200 | |
| commit | 9e9dd15316e80cae916c532d13ddc5ddc5e93697 (patch) | |
| tree | 52f0daa73bcd36d3562cb80847cc4536355448fc /node/executionnode.h | |
| parent | 80ff2a99b45a25695321cc84a30a3fbf3b797d54 (diff) | |
| parent | 1ccb6b4c0454fae8ebc4ebdca9ab74588d3d8707 (diff) | |
| download | OneRoll-9e9dd15316e80cae916c532d13ddc5ddc5e93697.tar.gz OneRoll-9e9dd15316e80cae916c532d13ddc5ddc5e93697.zip | |
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'node/executionnode.h')
| -rw-r--r-- | node/executionnode.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/node/executionnode.h b/node/executionnode.h index 39d714b..2531ced 100644 --- a/node/executionnode.h +++ b/node/executionnode.h @@ -3,13 +3,14 @@ #include "result/result.h" #include <QDebug> + /** * @brief The ExecutionNode class */ class ExecutionNode { public: - enum ERROR_CODE {NO_ERROR,DIE_RESULT_EXPECTED,BAD_SYNTAXE,ENDLESS_LOOP_ERROR,DIVIDE_BY_ZERO,NOTHING_UNDERSTOOD}; + enum ERROR_CODE {NO_ERROR,DIE_RESULT_EXPECTED,BAD_SYNTAXE,ENDLESS_LOOP_ERROR,DIVIDE_BY_ZERO,NOTHING_UNDERSTOOD,NO_DICE_TO_ROLL,TOO_MANY_DICE}; /** * @brief ExecutionNode */ @@ -46,7 +47,7 @@ public: * @brief toString * @return */ - virtual QString toString()const=0; + virtual QString toString(bool withLabel)const=0; /** * @brief getPriority * @return @@ -85,6 +86,8 @@ protected: * @brief m_errors */ QMap<ExecutionNode::ERROR_CODE,QString> m_errors; + + QString m_id; }; #endif // EXECUTIONNODE_H |