From 07c5f6ec23fcf9237a24e71adcfacabce677f818 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 29 Apr 2022 10:48:09 +0200 Subject: Change file organization. --- src/libparser/node/stringnode.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/libparser/node/stringnode.h (limited to 'src/libparser/node/stringnode.h') diff --git a/src/libparser/node/stringnode.h b/src/libparser/node/stringnode.h new file mode 100644 index 0000000..4079b7f --- /dev/null +++ b/src/libparser/node/stringnode.h @@ -0,0 +1,29 @@ +#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; + /** + * @brief getCopy + * @return + */ + virtual ExecutionNode* getCopy() const; + +private: + QString m_data; + StringResult* m_stringResult; +}; + +#endif // STRINGNODE_H -- cgit v1.2.3-70-g09d2