File indexing completed on 2024-05-12 05:39:27
0001 #ifndef FORLOOPNODE_H 0002 #define FORLOOPNODE_H 0003 0004 #include "executionnode.h" 0005 #include "result/diceresult.h" 0006 #include <memory> 0007 0008 class MockNode : public ExecutionNode 0009 { 0010 public: 0011 MockNode(); 0012 void run(ExecutionNode* node); 0013 void setResult(Result* result); 0014 QString toString(bool withLabel) const; 0015 qint64 getPriority() const; 0016 ExecutionNode* getCopy() const; 0017 }; 0018 0019 class ForLoopNode : public ExecutionNode 0020 { 0021 public: 0022 ForLoopNode(); 0023 void run(ExecutionNode* previous); 0024 0025 void setInternal(ExecutionNode* internal); 0026 0027 QString toString(bool withLabel) const; 0028 qint64 getPriority() const; 0029 ExecutionNode* getCopy() const; 0030 0031 private: 0032 std::unique_ptr<ExecutionNode> m_internal; 0033 DiceResult* m_diceResult; 0034 }; 0035 0036 #endif // FORLOOPNODE_H