Design Patterns
sample_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_TEMPLATEMETHOD_SAMPLE_APPLICATION_H_
7 #define OPERATIONAL_TEMPLATEMETHOD_SAMPLE_APPLICATION_H_
8 
9 #include "template_application.h"
10 #include "document_interface.h"
11 
12 namespace operational
13 {
14 namespace templatemethod
15 {
17 {
18  public:
19  virtual DocumentInterface *CreateDocument() override;
20  virtual bool CanOpenDocument(const std::string& path) override;
21  virtual void AboutToOpenDocument(DocumentInterface* document) override;
22 };
23 }
24 }
25 
26 #endif
27 
virtual DocumentInterface * CreateDocument() override
Definition: sample_application.cc:13
Definition: application.cc:10
virtual bool CanOpenDocument(const std::string &path) override
Definition: sample_application.cc:18
Definition: template_application.h:17
Definition: document_interface.h:23
virtual void AboutToOpenDocument(DocumentInterface *document) override
Definition: sample_application.cc:27
Definition: sample_application.h:16