forked from GEN-B-Groupe-C/GEN_Labo_05
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rental.h
50 lines (39 loc) · 878 Bytes
/
Rental.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Rental.h
#ifndef RENTAL_H
#define RENTAL_H
#include <sstream>
#include <vector>
#include "Movie.h"
#include "Customer.h"
class State;
class Rental {
public:
Rental( const Movie& movie, int daysRented );
virtual int getDaysRented() const;
virtual const Movie& getMovie() const;
virtual double getAmmount() ;
virtual std::string getFigures() ;
virtual int getFrequentRenterPoint() const;
virtual void setCurrent(State *s);
virtual double children() ;
virtual double regular() ;
virtual double newRelease() ;
private:
const Movie& _movie;
int _daysRented;
State *current;
};
class State
{
public :
virtual double regular(Rental *r) {
return 0;
}
virtual double newRelease(Rental *r) {
return 0;
}
virtual double children(Rental *r) {
return 0;
}
};
#endif // RENTAL_H