Design Patterns
open_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_OPEN_COMMAND_H_
7 #define OPERATIONAL_COMMAND_OPEN_COMMAND_H_
8 
9 #include "command_interface.h"
10 #include "command_application.h"
11 
12 namespace operational
13 {
14 namespace command
15 {
17 {
18  public:
19  explicit OpenCommand(CommandApplication* application);
20 
21  virtual void Execute() override;
22 
23  protected:
24  virtual std::string AskUser() const;
25 
26  private:
27  CommandApplication* application_;
28  std::string response_;
29 };
30 }
31 }
32 
33 #endif
34 
virtual std::string AskUser() const
Definition: open_command.cc:25
Definition: application.cc:10
OpenCommand(CommandApplication *application)
Definition: open_command.cc:12
Definition: open_command.h:16
Definition: command_interface.h:13
virtual void Execute() override
Definition: open_command.cc:14
Definition: command_application.h:15