Design Patterns
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
floppy_disk.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_FLOPPY_DISK_H_
7 #define OPERATIONAL_VISITOR_FLOPPY_DISK_H_
8 
10 
11 namespace operational
12 {
13 namespace visitor
14 {
16 {
17  public:
18  explicit FloppyDisk(const std::string& name);
19 
20  std::string name() const override;
21 
22  double price() const override;
23  void price(const double&) override;
24 
25  double GetBoxPrice() override;
26 
27  virtual void Accept(EquipmentVisitorInterface&) override;
28 
29  private:
30  std::string name_;
31  double price_;
32 };
33 }
34 }
35 
36 #endif
37 
Definition: application.cc:10
FloppyDisk(const std::string &name)
Definition: floppy_disk.cc:12
Definition: equipment_visitor_interface.h:18
double GetBoxPrice() override
Definition: floppy_disk.cc:29
std::string name() const override
Definition: floppy_disk.cc:14
Definition: floppy_disk.h:15
virtual void Accept(EquipmentVisitorInterface &) override
Definition: floppy_disk.cc:34
double price() const override
Definition: floppy_disk.cc:19
Definition: visited_equipment_interface.h:17
Definition: floppy_disk_interface.h:13