Design Patterns
macro_command.h
Go to the documentation of this file.
1 // Based on "Design Patterns: Elements of Reusable Object-Oriented Software"
2 // book by Erich Gamma, John Vlissides, Ralph Johnson, and Richard Helm
3 //
4 // Created by Bartosz Rachwal. The National Institute of Advanced Industrial Science and Technology, Japan.
5 
6 #ifndef OPERATIONAL_COMMAND_MACRO_COMMAND_H_
7 #define OPERATIONAL_COMMAND_MACRO_COMMAND_H_
8 
9 #include "command_interface.h"
10 
11 #include "../iterator/list.h"
12 
13 namespace operational
14 {
15 namespace command
16 {
18 {
19  public:
20  MacroCommand();
21  virtual ~MacroCommand();
22 
23  virtual void Add(CommandInterface*);
24  virtual void Remove(CommandInterface*);
25 
26  virtual void Execute() override;
27 
28  private:
30 };
31 }
32 }
33 
34 #endif
35 
virtual void Remove(CommandInterface *)
Definition: macro_command.cc:40
MacroCommand()
Definition: macro_command.cc:30
Definition: application.cc:10
Definition: list.h:17
virtual void Execute() override
Definition: macro_command.cc:14
virtual void Add(CommandInterface *)
Definition: macro_command.cc:35
Definition: macro_command.h:17
virtual ~MacroCommand()
Definition: macro_command.cc:25
Definition: command_interface.h:13