employee.h

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

H
48
字号
#ifndef EMPLOYEE_H#define EMPLOYEE_H#include <string>class PaymentSchedule;class PaymentClassification;class PaymentMethod;class Affiliation;class Paycheck;class Date;class Employee{ public:  virtual ~Employee();  Employee(int empid, string name, string address);  void SetName(string name);  void SetAddress(string address);  void SetClassification(PaymentClassification*);  void SetMethod(PaymentMethod*);  void SetSchedule(PaymentSchedule*);  void SetAffiliation(Affiliation*);  int GetEmpid() const {return itsEmpid;}  string GetName() const {return itsName;}  string GetAddress() const {return itsAddress;}  PaymentMethod* GetMethod() {return itsPaymentMethod;}  PaymentClassification* GetClassification() {return itsClassification;}  PaymentSchedule* GetSchedule() {return itsSchedule;}  Affiliation* GetAffiliation() {return itsAffiliation;}  void Payday(Paycheck&);  bool IsPayDate(const Date& payDate) const;  Date GetPayPeriodStartDate(const Date& payPeriodEndDate) const; private:  int itsEmpid;  string itsName;  string itsAddress;  PaymentClassification* itsClassification;  PaymentSchedule* itsSchedule;  PaymentMethod* itsPaymentMethod;  Affiliation* itsAffiliation;};#endif

⌨️ 快捷键说明

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