Facebook
From bmys, 2 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 248
  1. //
  2. // Created by arch on 26.10.17.
  3. //
  4.  
  5. #include "Vehicle.h"
  6. #include "Client.h"
  7. #include "boost/date_time/local_time/local_time.hpp"
  8. #include "boost/date_time/posix_time/posix_time.hpp"
  9. #include <boost/lexical_cast.hpp>
  10. #include <boost/uuid/uuid.hpp>            // uuid class
  11. #include <boost/uuid/uuid_generators.hpp> // generators
  12. #include <boost/uuid/uuid_io.hpp>         // streaming operators.
  13. #ifndef POBIPROJECT_RENT_H
  14. #define POBIPROJECT_RENT_H
  15. namespace lt = boost::local_time;
  16.  
  17.  
  18. Vehicle vehicle();
  19.  
  20. class Client;
  21.  
  22. class Rent{
  23.  
  24.     std::string uniqId;
  25.  
  26.     const lt::local_date_time startRentData;
  27.     lt::local_date_time stopRentData;
  28.     int rentDays;
  29.     int price;
  30.     int rentCost;
  31.     Vehicle* vehicle;
  32.     Client* client;
  33.  
  34. public:
  35.  
  36.     Rent(const lt::local_date_time &startRentData, Vehicle *vehicle, Client *client);
  37.  
  38.     std:: string rentInfo();
  39.     float stopRent( lt::local_date_time ldt);
  40. };
  41.  
  42. #endif //POBIPROJECT_RENT_H