src/plan/Command.h
raw| 1 | #ifndef HEADER_COMMAND_H |
| 2 | #define HEADER_COMMAND_H |
| 3 | |
| 4 | |
| 5 | /** |
| 6 | * Command interface. |
| 7 | */ |
| 8 | class Command { |
| 9 | public: |
| 10 | virtual ~Command() {} |
| 11 | /** |
| 12 | * Return true when command has finished his work. |
| 13 | * @param count number of calls |
| 14 | * @return true for finish |
| 15 | */ |
| 16 | virtual bool finish(int count) = 0; |
| 17 | }; |
| 18 | |
| 19 | #endif |