Design Patterns
spell.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 CREATIONAL_MAZEPARTS_SPELL_H_
7 #define CREATIONAL_MAZEPARTS_SPELL_H_
8 
9 #include <string>
10 
11 namespace creational
12 {
13 namespace commons
14 {
15 class Spell
16 {
17  public:
18  explicit Spell(const std::string& message);
19  Spell(const Spell& spell);
20 
21  std::string message() const;
22 
23  private:
24  const std::string message_;
25 };
26 }
27 }
28 
29 #endif
30 
std::string message() const
Definition: spell.cc:16
Definition: spell.h:15
Definition: bombed_maze_factory.cc:11
Spell(const std::string &message)
Definition: spell.cc:12