diff options
| author | 2014-12-06 10:15:13 +0100 | |
|---|---|---|
| committer | 2014-12-06 10:15:13 +0100 | |
| commit | 9ac00a7658e81a045a68668df7ead5bb7c27254c (patch) | |
| tree | 92b10c829610bd14b1ec1aad2ab54f23af975624 /node/executionnode.h | |
| parent | 3d7029f1b4254403374cb1d8f5cbf2814f2c9ec4 (diff) | |
| download | OneRoll-9ac00a7658e81a045a68668df7ead5bb7c27254c.tar.gz OneRoll-9ac00a7658e81a045a68668df7ead5bb7c27254c.zip | |
-Add comments
Diffstat (limited to 'node/executionnode.h')
| -rw-r--r-- | node/executionnode.h | 45 |
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; }; |