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/variablenode.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/libparser/node/variablenode.h (limited to 'src/libparser/node/variablenode.h') diff --git a/src/libparser/node/variablenode.h b/src/libparser/node/variablenode.h new file mode 100644 index 0000000..8bf1cb1 --- /dev/null +++ b/src/libparser/node/variablenode.h @@ -0,0 +1,35 @@ +#ifndef VARIABLENODE_H +#define VARIABLENODE_H + +#include "node/executionnode.h" + +/** + * @brief The VariableNode class is an ExecutionNode. It is dedicated to retrive + * variable value from other starting node. + */ +class VariableNode : public ExecutionNode +{ +public: + VariableNode(); + void run(ExecutionNode* previous) override; + virtual QString toString(bool withLabel) const override; + virtual qint64 getPriority() const override; + /** + * @brief getCopy + * @return + */ + virtual ExecutionNode* getCopy() const override; + quint64 getIndex() const; + void setIndex(quint64 index); + + std::vector* getData() const; + void setData(std::vector* data); + + void setDisplayed(); + +private: + quint64 m_index; + std::vector* m_data= nullptr; +}; + +#endif // VARIABLENODE_H -- cgit v1.2.3-70-g09d2