Design Patterns
composition.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_STRATEGY_COMPOSITION_H_
7 #define OPERATIONAL_STRATEGY_COMPOSITION_H_
8 
9 #include "compositor_interface.h"
10 
11 namespace operational
12 {
13 namespace strategy
14 {
16 {
17  public:
18  explicit Composition(CompositorInterface* compositor);
19  void Repair();
20 
21  int break_count() const;
22 
23  private:
24  CompositorInterface* compositor_;
25 
26  int line_width_;
27  int line_breaks_;
28  int line_count_;
29  int break_count_;
30 };
31 }
32 }
33 
34 #endif
35 
Definition: compositor_interface.h:13
Composition(CompositorInterface *compositor)
Definition: composition.cc:12
Definition: composition.h:15
Definition: application.cc:10
int break_count() const
Definition: composition.cc:34
void Repair()
Definition: composition.cc:14