diff options
| author | 2016-11-05 00:11:19 +0100 | |
|---|---|---|
| committer | 2016-11-05 00:11:19 +0100 | |
| commit | 3799c71dee9e8d73858c727873d550adc0649c64 (patch) | |
| tree | 87813e160bdbb3bad51b1a6c448bdeeaa475c2fc /node/filternode.h | |
| parent | d5876d9b88c2f695592338335308a32e584d86a4 (diff) | |
| parent | b977d3e2a2765f5b91ac7bf5c34ea8891969cda9 (diff) | |
| download | OneRoll-3799c71dee9e8d73858c727873d550adc0649c64.tar.gz OneRoll-3799c71dee9e8d73858c727873d550adc0649c64.zip | |
add filter node
Diffstat (limited to 'node/filternode.h')
| -rw-r--r-- | node/filternode.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/node/filternode.h b/node/filternode.h new file mode 100644 index 0000000..ca08c3b --- /dev/null +++ b/node/filternode.h @@ -0,0 +1,37 @@ +#ifndef FILTERNODE_H +#define FILTERNODE_H + +#include "executionnode.h" + +#include "validator.h" +#include "result/diceresult.h" + +class FilterNode : public ExecutionNode +{ +public: + FilterNode(); + virtual ~FilterNode(); + + virtual void run(ExecutionNode* previous); + /** + * @brief setValidator + */ + virtual void setValidator(Validator* ); + /** + * @brief toString + * @return + */ + virtual QString toString(bool withLabel)const; + /** + * @brief getPriority + * @return + */ + virtual qint64 getPriority() const; + +private: + DiceResult* m_diceResult; + Validator* m_validator; + bool m_eachValue; +}; + +#endif // FILTERNODE_H |