aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/stringnode.h
diff options
context:
space:
mode:
Diffstat (limited to 'node/stringnode.h')
-rw-r--r--node/stringnode.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/node/stringnode.h b/node/stringnode.h
new file mode 100644
index 0000000..cf70d02
--- /dev/null
+++ b/node/stringnode.h
@@ -0,0 +1,25 @@
+#ifndef STRINGNODE_H
+#define STRINGNODE_H
+
+#include "node/executionnode.h"
+#include "result/stringresult.h"
+
+/**
+ * @brief The StringNode class is an ExecutionNode. It is dedicated to store string and display result.
+ */
+class StringNode : public ExecutionNode
+{
+public:
+ StringNode();
+ void run(ExecutionNode* previous);
+ void setString(QString str);
+ virtual QString toString(bool withLabel)const;
+ virtual qint64 getPriority() const;
+
+private:
+ QString m_data;
+ StringResult* m_stringResult;
+
+};
+
+#endif // STRINGNODE_H