Design Patterns
application.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_CHAIN_APPLICATION_H_
7 #define OPERATIONAL_CHAIN_APPLICATION_H_
8 
10 
11 #include <string>
12 
13 namespace operational
14 {
15 namespace chain
16 {
18 {
19  public:
20  Application();
21  explicit Application(std::string name);
22  Application(std::string name, int topic);
23  Application(std::string name, int topic, HelpHandlerInterface* parent_);
24 
25  virtual bool HasHelp() override;
26  virtual void SetHandler(HelpHandlerInterface*, int) override;
27 
28  virtual void HandleHelp() override;
29 
30  int topic() const;
31  std::string name() const;
32  std::string help_message() const;
33 
34  private:
35  int topic_;
36  std::string name_;
37  std::string help_message_;
38  HelpHandlerInterface* parent_;
39 };
40 }
41 }
42 
43 #endif
44 
Definition: application.h:17
Definition: help_handler_interface.h:13
Application()
Definition: application.cc:14
Definition: application.cc:10
std::string help_message() const
Definition: application.cc:66
int topic() const
Definition: application.cc:56
virtual bool HasHelp() override
Definition: application.cc:28
std::string name() const
Definition: application.cc:61
virtual void HandleHelp() override
Definition: application.cc:39
virtual void SetHandler(HelpHandlerInterface *, int) override
Definition: application.cc:33