aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/occurencecountnode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-03-23 18:03:35 +0100
committerGitHub <noreply@github.com>2019-03-23 18:03:35 +0100
commitd1b2ac03a90fe00ee3b09e60584f895b40e2e9df (patch)
treedf5a5653f0978e700fe7ba6450230789b5e9be34 /node/occurencecountnode.h
parent607b8284672c75f134616a826e3475be4cf8e277 (diff)
parente672047be7bb9e4e1b163a04a55b98b52d39e16a (diff)
downloadOneRoll-d1b2ac03a90fe00ee3b09e60584f895b40e2e9df.tar.gz
OneRoll-d1b2ac03a90fe00ee3b09e60584f895b40e2e9df.zip
Merge pull request #39 from Rolisteam/occurence
Occurence
Diffstat (limited to 'node/occurencecountnode.h')
-rw-r--r--node/occurencecountnode.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/node/occurencecountnode.h b/node/occurencecountnode.h
new file mode 100644
index 0000000..125f340
--- /dev/null
+++ b/node/occurencecountnode.h
@@ -0,0 +1,54 @@
+/***************************************************************************
+ * Copyright (C) 2018 by Renaud Guezennec *
+ * http://www.rolisteam.org/contact *
+ * *
+ * rolisteam is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * This program is distributed in the hope that it will be useful, *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
+ * GNU General Public License for more details. *
+ * *
+ * You should have received a copy of the GNU General Public License *
+ * along with this program; if not, write to the *
+ * Free Software Foundation, Inc., *
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ ***************************************************************************/
+#ifndef OCCURENCECOUNTNODE_H
+#define OCCURENCECOUNTNODE_H
+
+#include "executionnode.h"
+#include "validator.h"
+
+class StringResult;
+class OccurenceCountNode : public ExecutionNode
+{
+public:
+ OccurenceCountNode();
+
+ void run(ExecutionNode* previous= nullptr);
+ virtual QString toString(bool withLabel) const;
+
+ ExecutionNode* getCopy() const;
+ qint64 getPriority() const;
+
+ qint64 getWidth() const;
+ void setWidth(const qint64& width);
+
+ qint64 getHeight() const;
+ void setHeight(const qint64& height);
+
+ Validator* getValidator() const;
+ void setValidator(Validator* validator);
+
+private:
+ qint64 m_width= 1;
+ qint64 m_height= 0;
+ Validator* m_validator= nullptr;
+ StringResult* m_stringResult= nullptr;
+};
+
+#endif // OCCURENCECOUNTNODE_H