From 9ac00a7658e81a045a68668df7ead5bb7c27254c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sat, 6 Dec 2014 10:15:13 +0100 Subject: -Add comments --- node/executionnode.h | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'node') 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 +/** + * @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 getErrorList(); protected: + /** + * @brief m_result + */ Result* m_result; + /** + * @brief m_nextNode + */ ExecutionNode* m_nextNode; + /** + * @brief m_errors + */ QList m_errors; }; -- cgit v1.2.3-70-g09d2