aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-10-11 22:13:07 +0200
committerRenaud G <renaud@rolisteam.org>2015-10-11 22:13:07 +0200
commit9e9dd15316e80cae916c532d13ddc5ddc5e93697 (patch)
tree52f0daa73bcd36d3562cb80847cc4536355448fc /node/executionnode.h
parent80ff2a99b45a25695321cc84a30a3fbf3b797d54 (diff)
parent1ccb6b4c0454fae8ebc4ebdca9ab74588d3d8707 (diff)
downloadOneRoll-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.h7
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