00001
00002
00003 #ifndef __J2K__PieceWorker_HPP__
00004 #define __J2K__PieceWorker_HPP__
00005
00006 #include <j2k/Fred/Job/Employee.hpp>
00007
00008 class PieceWorker : public Employee {
00009 public:
00010 PieceWorker( const char* first, const char* last,
00011 double w, UINT qty );
00012
00013 void setWage( double w );
00014 void setQuantity( UINT qty );
00015 void printName() const;
00016
00017 double earnings() const;
00018
00019 private:
00020 double wagePerPiece;
00021 UINT quantity;
00022 };
00023
00024 #include <j2k/Fred/Job/PieceWorker.inl>
00025
00026 #endif
00027