diff options
| author | 2017-11-28 15:42:41 +0100 | |
|---|---|---|
| committer | 2017-11-28 15:42:41 +0100 | |
| commit | ec4eea389e3fd23e5491e1609755d49b916d2db0 (patch) | |
| tree | 777bed719336597406fc81b96d1cffac78ad048a /node/variablenode.h | |
| parent | f0ade121f9cef3b39c41816536f4e400f43dd4af (diff) | |
| download | OneRoll-ec4eea389e3fd23e5491e1609755d49b916d2db0.tar.gz OneRoll-ec4eea389e3fd23e5491e1609755d49b916d2db0.zip | |
Add dynamic variable node
Diffstat (limited to 'node/variablenode.h')
| -rw-r--r-- | node/variablenode.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/node/variablenode.h b/node/variablenode.h new file mode 100644 index 0000000..9173ae3 --- /dev/null +++ b/node/variablenode.h @@ -0,0 +1,33 @@ +#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); + virtual QString toString(bool withLabel)const; + virtual qint64 getPriority() const; + /** + * @brief getCopy + * @return + */ + virtual ExecutionNode *getCopy() const; + qint64 getIndex() const; + void setIndex(qint64 index); + + std::vector<ExecutionNode *> getData() const; + void setData(const std::vector<ExecutionNode *> &data); + +private: + qint64 m_index; + std::vector<ExecutionNode*> m_data; +}; + +#endif // VARIABLENODE_H |