Design Patterns
visited_equipment_interface.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_VISITOR_VISITED_EQUIPMENT_INTERFACE_H_
7 #define OPERATIONAL_VISITOR_VISITED_EQUIPMENT_INTERFACE_H_
8 
10 
11 #include <string>
12 
13 namespace operational
14 {
15 namespace visitor
16 {
18 {
19  public:
21 
22  virtual std::string name() const = 0;
23 
24  virtual double price() const = 0;
25  virtual void price(const double&) = 0;
26 
27  virtual void Accept(EquipmentVisitorInterface&) = 0;
28 };
29 }
30 }
31 
32 #endif
33 
Definition: application.cc:10
Definition: equipment_visitor_interface.h:18
virtual void Accept(EquipmentVisitorInterface &)=0
virtual ~VisitedEquipmentInterface()
Definition: visited_equipment_interface.h:20
Definition: visited_equipment_interface.h:17