Design Patterns
p_m_window_imp.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 STRUCTURAL_BRIDGE_P_M_WINDOW_IMP_H_
7 #define STRUCTURAL_BRIDGE_P_M_WINDOW_IMP_H_
8 
9 #include "window_imp.h"
10 
11 #include <string>
12 
13 namespace structural
14 {
15 namespace bridge
16 {
17 class PMWindowImp : public WindowImp
18 {
19  public:
20  PMWindowImp();
21 
22  void DeviceRect(float, float, float, float) override;
23  void DeviceText(const std::string& text, float, float) override;
24 
25  std::string text() const;
26 
27  private:
28  std::string text_;
29 };
30 }
31 }
32 
33 #endif
34 
Definition: window_imp.h:15
Definition: shape_interface.h:11
void DeviceRect(float, float, float, float) override
Definition: p_m_window_imp.cc:23
Definition: p_m_window_imp.h:17
void DeviceText(const std::string &text, float, float) override
Definition: p_m_window_imp.cc:16
PMWindowImp()
Definition: p_m_window_imp.cc:14
std::string text() const
Definition: p_m_window_imp.cc:25