office.hpp (655B)
1 #ifndef OFFICE_HPP 2 #define OFFICE_HPP 3 4 #include "app.hpp" 5 6 class Office final: public App 7 { 8 private: 9 std::vector<std::string> extensions; 10 11 public: 12 Office(); 13 Office(const char *serialnum, const std::string& name, 14 const std::string& os, Manufacturer *manf, 15 const int price, const std::vector<std::string>& ext); 16 Office(const Office& of); 17 ~Office(); 18 19 const std::vector<std::string> get_exts() const {return extensions;} 20 void set_exts(const std::vector<std::string>& extensions); 21 void print(std::ostream& stream) const override; 22 }; 23 24 #endif /* OFFICE_HPP */