Design Patterns
stream_decorator.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_DECORATOR_STREAM_DECORATOR_H_
7 #define STRUCTURAL_DECORATOR_STREAM_DECORATOR_H_
8 
9 #include "stream_interface.h"
10 
11 namespace structural
12 {
13 namespace decorator
14 {
16 {
17  public:
19 
20  void PutInt(int) override;
21  void PutString(const std::string&) override;
22 
23  protected:
25 };
26 }
27 }
28 
29 #endif
30 
Definition: shape_interface.h:11
StreamInterface * component_
Definition: stream_decorator.h:24
void PutInt(int) override
Definition: stream_decorator.cc:12
void PutString(const std::string &) override
Definition: stream_decorator.cc:17
StreamDecorator(StreamInterface *)
Definition: stream_decorator.cc:22
Definition: stream_decorator.h:15
Definition: stream_interface.h:15