From 8d7e2cc15adf4a82ef6354fbfebfadc3a6bb075c Mon Sep 17 00:00:00 2001 From: Renaud G Date: Tue, 9 Dec 2014 20:40:22 +0100 Subject: -add comments --- node/countexecutenode.h | 21 +++++++++++++++++++++ result.h | 27 ++++++++++++++++++++++++--- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/node/countexecutenode.h b/node/countexecutenode.h index bece965..dc90f74 100644 --- a/node/countexecutenode.h +++ b/node/countexecutenode.h @@ -6,13 +6,34 @@ #include "validator.h" #include "scalarresult.h" +/** + * @brief The CountExecuteNode class + */ class CountExecuteNode : public ExecutionNode { public: + /** + * @brief CountExecuteNode + */ CountExecuteNode(); + /** + * @brief run + * @param previous + */ virtual void run(ExecutionNode* previous); + /** + * @brief setValidator + */ virtual void setValidator(Validator* ); + /** + * @brief toString + * @return + */ virtual QString toString()const; + /** + * @brief getPriority + * @return + */ virtual qint64 getPriority() const; private: diff --git a/result.h b/result.h index c0317ce..ec17d8e 100644 --- a/result.h +++ b/result.h @@ -23,22 +23,43 @@ #define RESULT_H #include +#include + /** * @brief The Result class */ class Result { public: + /** + * @brief Result + */ Result(); - + /** + * @brief isScalar + * @return + */ virtual bool isScalar() const = 0; + /** + * @brief getScalar + * @return + */ virtual qreal getScalar() = 0; - + /** + * @brief getPrevious + * @return + */ virtual Result* getPrevious(); + /** + * @brief setPrevious + */ virtual void setPrevious(Result*); + virtual bool isStringResult(); + virtual QString getStringResult(); + private: - Result* m_previous; + Result* m_previous;/// @brief }; #endif // RESULT_H -- cgit v1.2.3-70-g09d2