Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. #pragma once
  2. #include <hash_map>
  3. #include <string>
  4. #include "Customer.h"
  5.  
  6.  
  7. class Movie {
  8. public:
  9. enum Genre { Drama, Adventure, Family, Action, SciFi, Comedy, Animated, Thriller, Other };
  10. enum Rating { G, PG, M15, MA15 };
  11.  
  12. Movie(void);
  13. ~Movie(void);
  14. Movie(std::string name);
  15.  
  16. std::string GetDirector();
  17. std::string GetName();
  18. std::list<std::string> GetStarring();
  19. Rating GetRating();
  20. Genre GetGenre();
  21.  
  22. int GetNumCopies();
  23. int GetCurrentRentees();
  24. int GetTimesRented();
  25. int GetNumCopiesInStore();
  26. int GetDuration();
  27.  
  28. void AddCopy(int serial);
  29. void RemoveCopy();
  30.  
  31. std::string ToString();
  32.  
  33. void SetStarring(std::list<std::string> starring);
  34. void SetDirector(std::string director);
  35. void SetDuration(int duration);
  36. void SetGenre(Genre genre);
  37. void SetRating(Rating rating);
  38. void SetCopies(std::list<std::string> copies,int numCopies);
  39.  
  40. private:
  41. std::list<std::string> starring;
  42. std::string director;
  43. std::string name;
  44. Rating rating;
  45. Genre genre;
  46. int timesRented;
  47. int duration;
  48. int numCopies;
  49.  
  50. stdext::hash_map<std::string, Customer*> copyToCustomerMap;
  51. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement