aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/executionnode.h
blob: 920ef566849ee2c2e7346cd3c987b2586f127fda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef EXECUTIONNODE_H
#define EXECUTIONNODE_H

#include "result.h"

class ExecutionNode
{
public:
    ExecutionNode();
    virtual ~ExecutionNode();
    virtual void run(ExecutionNode* previous = NULL)=0;
    Result* getResult();
    void setNextNode(ExecutionNode*);
    ExecutionNode* getNextNode();
protected:
    Result* m_result;
    ExecutionNode* m_nextNode;
};

#endif // EXECUTIONNODE_H