aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-12-06 10:15:13 +0100
committerRenaud G <renaud@rolisteam.org>2014-12-06 10:15:13 +0100
commit9ac00a7658e81a045a68668df7ead5bb7c27254c (patch)
tree92b10c829610bd14b1ec1aad2ab54f23af975624 /node/executionnode.h
parent3d7029f1b4254403374cb1d8f5cbf2814f2c9ec4 (diff)
downloadOneRoll-9ac00a7658e81a045a68668df7ead5bb7c27254c.tar.gz
OneRoll-9ac00a7658e81a045a68668df7ead5bb7c27254c.zip
-Add comments
Diffstat (limited to 'node/executionnode.h')
-rw-r--r--node/executionnode.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/node/executionnode.h b/node/executionnode.h
index b83a6f1..ef6faa3 100644
--- a/node/executionnode.h
+++ b/node/executionnode.h
@@ -3,22 +3,67 @@
#include "result.h"
#include <QDebug>
+/**
+ * @brief The ExecutionNode class
+ */
class ExecutionNode
{
public:
enum ERROR_CODE {NO_ERROR,DIE_RESULT_EXPECTED,BAD_SYNTAXE};
+ /**
+ * @brief ExecutionNode
+ */
ExecutionNode();
+ /**
+ * @brief ~ExecutionNode
+ */
virtual ~ExecutionNode();
+ /**
+ * @brief run
+ * @param previous
+ */
virtual void run(ExecutionNode* previous = NULL)=0;
+ /**
+ * @brief getResult
+ * @return
+ */
Result* getResult();
+ /**
+ * @brief setNextNode
+ */
void setNextNode(ExecutionNode*);
+ /**
+ * @brief getNextNode
+ * @return
+ */
ExecutionNode* getNextNode();
+ /**
+ * @brief toString
+ * @return
+ */
virtual QString toString()const=0;
+ /**
+ * @brief getPriority
+ * @return
+ */
virtual qint64 getPriority() const=0;
+ /**
+ * @brief getErrorList
+ * @return
+ */
virtual QList<ExecutionNode::ERROR_CODE> getErrorList();
protected:
+ /**
+ * @brief m_result
+ */
Result* m_result;
+ /**
+ * @brief m_nextNode
+ */
ExecutionNode* m_nextNode;
+ /**
+ * @brief m_errors
+ */
QList<ExecutionNode::ERROR_CODE> m_errors;
};