You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Vehicle.hpp 986 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #include <string>
  2. #include <iostream>
  3. #include <vector>
  4. using namespace std;
  5. class Vehicle
  6. {
  7. private:
  8. string type;
  9. int length;
  10. int width;
  11. string origin;
  12. string destination;
  13. string dateNtime;
  14. int id;
  15. vector< vector<int> > seatMap;
  16. public:
  17. Vehicle(int length, int width, int id);
  18. Vehicle(string type, int length, int width, string origin, string destination, string dateNtime, int id);
  19. Vehicle(string type, int length, int width, string origin, string destination, string dateNtime, int id, vector< vector<int> > seatMap);
  20. void setType(string type);
  21. void setLength(int length);
  22. void setWidth(int width);
  23. void setOrigin(string origin);
  24. void setDestination(string origin);
  25. string getType();
  26. int getLength();
  27. int getWidth();
  28. string getOrigin();
  29. string getDestination();
  30. string getDateNTime();
  31. int getId();
  32. void initialize();
  33. bool bookSeat(int x, int y, int guestId);
  34. bool checkAvailabilty(int x, int y);
  35. void printMap(int guestId);
  36. };