aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/libparser/node/variablenode.h
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
committerRenaud G <renaud@rolisteam.org>2022-04-29 10:48:09 +0200
commit07c5f6ec23fcf9237a24e71adcfacabce677f818 (patch)
tree588e8c5f82b9163181fad3581f610e6f1d88cba4 /src/libparser/node/variablenode.h
parenta9153f1615a842cfb9e9bcda4d9071e202618569 (diff)
downloadOneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.tar.gz
OneRoll-07c5f6ec23fcf9237a24e71adcfacabce677f818.zip
Change file organization.
Diffstat (limited to 'src/libparser/node/variablenode.h')
-rw-r--r--src/libparser/node/variablenode.h35
1 files changed, 35 insertions, 0 deletions
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<ExecutionNode*>* getData() const;
+ void setData(std::vector<ExecutionNode*>* data);
+
+ void setDisplayed();
+
+private:
+ quint64 m_index;
+ std::vector<ExecutionNode*>* m_data= nullptr;
+};
+
+#endif // VARIABLENODE_H