debugdecorator.h
Go to the documentation of this file.
1 #ifndef DEBUGDECORATOR_H
2 #define DEBUGDECORATOR_H
3 #include "commanddecorator.h"
4 
5 namespace dnai
6 {
7  namespace commands
8  {
10  {
11  public:
12  explicit DebugDecorator(ICommand *decoratedCommand);
13 
14  //Override ICommand functions
15  public:
16  virtual void execute() const override;
17  virtual void executeSave() override;
18  virtual void unExcute() const override;
19  virtual bool isSave() const override;
20  virtual QString infos() const override;
21 
22  };
23 
24  }
25 }
26 
27 #endif // DEBUGDECORATOR_H
Definition: debugdecorator.h:9
virtual void unExcute() const override
Reverse the execute() function.
Definition: debugdecorator.cpp:39
virtual bool isSave() const override
Is the command is in a save state.
Definition: debugdecorator.cpp:34
Definition: commanddecorator.h:8
DebugDecorator(ICommand *decoratedCommand)
Definition: debugdecorator.cpp:10
virtual QString infos() const override
Get display info for this command.
Definition: debugdecorator.cpp:51
virtual void executeSave() override
Save current state of the command for the reverse unExcute()
Definition: debugdecorator.cpp:26
Definition: api.h:13
virtual void execute() const override
Execute the command.
Definition: debugdecorator.cpp:14