diff options
| author | 2015-05-05 07:03:46 +0200 | |
|---|---|---|
| committer | 2015-05-05 07:03:46 +0200 | |
| commit | e844799045b0b3a4d8a968e011c96c10003d4256 (patch) | |
| tree | 1e0d159489152769c87295e5c33e574d25ebc6a6 /result | |
| parent | 590fc6528b09bf1abbd90caf31053cd5ef6b439b (diff) | |
| parent | 6dbf254b7d5b19b77eb4716b24a1768f48b11248 (diff) | |
| download | OneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.tar.gz OneRoll-e844799045b0b3a4d8a968e011c96c10003d4256.zip | |
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'result')
| -rw-r--r-- | result/scalarresult.h | 22 | ||||
| -rw-r--r-- | result/stringresult.h | 2 |
2 files changed, 19 insertions, 5 deletions
diff --git a/result/scalarresult.h b/result/scalarresult.h index 4d64a90..8a0fa11 100644 --- a/result/scalarresult.h +++ b/result/scalarresult.h @@ -25,16 +25,30 @@ #include "result.h" #include <Qt> - +/** + * @brief The ScalarResult class is used to store scalar result by many ExecutionNode. + */ class ScalarResult : public Result { public: + /** + * @brief ScalarResult + */ ScalarResult(); - + /** + * @brief getResult + * @return + */ virtual QVariant getResult(Result::RESULT_TYPE); - + /** + * @brief setValue + * @param i + */ void setValue(qreal i); - + /** + * @brief toString + * @return + */ virtual QString toString(); private: diff --git a/result/stringresult.h b/result/stringresult.h index 4a9a4a4..5a6b26c 100644 --- a/result/stringresult.h +++ b/result/stringresult.h @@ -4,7 +4,7 @@ #include <QString> #include "result.h" /** - * @brief The StringResult class + * @brief The StringResult class stores command result for String. */ class StringResult : public Result { |