Design Patterns
bitmap.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_BITMAP_H_
7 #define STRUCTURAL_BRIDGE_BITMAP_H_
8 
9 #include <string>
10 
11 namespace structural
12 {
13 namespace bridge
14 {
15 class Bitmap
16 {
17  public:
18  explicit Bitmap(const std::string& file_name);
19 
20  float width() const;
21  float height() const;
22 
23  private:
24  float width_;
25  float height_;
26 };
27 }
28 }
29 
30 #endif
31 
Definition: shape_interface.h:11
float width() const
Definition: bitmap.cc:18
Bitmap(const std::string &file_name)
Definition: bitmap.cc:12
Definition: bitmap.h:15
float height() const
Definition: bitmap.cc:23