hourlyclassification.h

来自「著名的uncle Bob的Agile software development的」· C头文件 代码 · 共 33 行

H
33
字号
#ifndef HOURLYCLASSIFICATION_H#define HOURLYCLASSIFICATION_H#include <map>#include "PaymentClassification.h"#include "Date.h"class TimeCard;class HourlyClassification : public PaymentClassification{ public:  virtual ~HourlyClassification();  HourlyClassification(double hourlyRate);  double GetRate() const {return itsRate;}  void AddTimeCard(TimeCard* tc);  TimeCard* GetTimeCard(const Date& date);  virtual double CalculatePay(Paycheck&) const; private:  double CalculatePayForTimeCard(TimeCard*) const; private:  double itsRate;  map<Date, TimeCard*> itsTimeCards;};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?