DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
command.h
Go to the documentation of this file.
1 #ifndef COMMAND_H
2 #define COMMAND_H
3 
9 class Command
10 {
11 public:
12  Command();
13  virtual ~Command();
14 
19  virtual bool execute() = 0;
20 
26  virtual bool undo() = 0;
27 
32  virtual bool redo() = 0;
33 };
34 
35 #endif // COMMAND_H
virtual ~Command()
Definition: command.cpp:8
An abstract class that implements an interface for commands that can be undone and redone.
Definition: command.h:9
virtual bool redo()=0
Redo the command.
virtual bool undo()=0
Undo the command.
Command()
Definition: command.cpp:3
virtual bool execute()=0
Execute the command.