aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/occurencecountnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-02-14 10:40:59 +0100
committerRenaud G <renaud@rolisteam.org>2019-03-23 17:55:15 +0100
commitc46ad9d1ceb345f09590ad8ea9a98b33a2a0c31b (patch)
tree53a8fa2d88ef09397171f360e0fc04487e547529 /node/occurencecountnode.h
parent607b8284672c75f134616a826e3475be4cf8e277 (diff)
downloadOneRoll-c46ad9d1ceb345f09590ad8ea9a98b33a2a0c31b.tar.gz
OneRoll-c46ad9d1ceb345f09590ad8ea9a98b33a2a0c31b.zip
first draft of occurence counter
Diffstat (limited to 'node/occurencecountnode.h')
-rw-r--r--node/occurencecountnode.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/node/occurencecountnode.h b/node/occurencecountnode.h
new file mode 100644
index 0000000..9c9aa13
--- /dev/null
+++ b/node/occurencecountnode.h
@@ -0,0 +1,24 @@
+#ifndef OCCURENCECOUNTNODE_H
+#define OCCURENCECOUNTNODE_H
+
+#include "executionnode.h"
+#include "validator.h"
+
+class OccurenceCountNode : public ExecutionNode
+{
+public:
+ OccurenceCountNode();
+
+ void run(ExecutionNode* previous = nullptr);
+ virtual QString toString(bool withLabel)const;
+
+ ExecutionNode* getCopy() const;
+ qint64 getPriority() const;
+
+private:
+ qint64 m_width=0;
+ qint64 m_height=0;
+ Validator* m_validator;
+};
+
+#endif // OCCURENCECOUNTNODE_H