FactDev  0.1
rate.h
1 #ifndef RATE_H
2 #define RATE_H
3 
4 #include "database/ratedatabase.h"
5 
6 #include "models/user.h"
7 namespace Models {
8 
13 class Rate
14 {
15 public:
16 
20  Rate();
21 
26  Rate(double hourly);
27 
34  Rate(int idBilling, int idProject);
35 
39  void setDailyRate(const double&);
40 
44  void setHourlyRate(const double&);
45 
50  double getDailyRate() const;
51 
56  double getHourlyRate() const;
57 
62  int getNbDailyHours() const;
63 
68  double getLegalRate() const;
69 
70 private:
71  double _hourly;
72  static const double LEGAL_RATE;
73  static const int NB_DAILY_HOURS;
74 };
75 
76 }
77 #endif // RATE_H
int getNbDailyHours() const
Rate::getNbDailyHours Return the number of daily hours.
Definition: rate.cpp:43
double getHourlyRate() const
Rate::getHourlyRate Return the hourly rate.
Definition: rate.cpp:38
void setHourlyRate(const double &)
Rate::setHourlyRate Modify the hourly rate with the new value.
Definition: rate.cpp:28
void setDailyRate(const double &)
Rate::setDailyRate Modify the daily rate with the new value.
Definition: rate.cpp:23
The Rate class Rate of a prestation.
Definition: rate.h:13
Rate()
Rate::Rate Construct a Rate.
Definition: rate.cpp:18
double getLegalRate() const
Rate::getLegalRate Return the legal rate.
Definition: rate.cpp:48
double getDailyRate() const
Rate::getDailyRate Return the daily rate.
Definition: rate.cpp:33