Design Patterns
bus_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_BUS_INTERFACE_H_
7 #define OPERATIONAL_VISITOR_BUS_INTERFACE_H_
8 
9 namespace operational
10 {
11 namespace visitor
12 {
14 {
15  public:
16  virtual ~BusInterface() {}
17 
18  virtual double GetLuxPrice() = 0;
19  virtual double GetRegularPrice() = 0;
20 };
21 }
22 }
23 
24 #endif
25 
Definition: application.cc:10
Definition: bus_interface.h:13
virtual double GetRegularPrice()=0
virtual ~BusInterface()
Definition: bus_interface.h:16