Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

C:/temp/src/j2k/etc/Job/CommissionWorker.hpp

Go to the documentation of this file.
00001 // Definition of class CommissionWorker
00002 #ifndef __J2K__CommissionWorker_HPP__
00003 #define __J2K__CommissionWorker_HPP__
00004 
00005 #include <j2k/Fred/Job/Employee.hpp>
00006 
00007 class CommissionWorker : public Employee {
00008 public:
00009    inline CommissionWorker( const char* first, const char* last,
00010                             double sal, double comm, UINT qty );
00011 
00012    inline void setSalary( double sal );
00013    inline void setCommission( double comm );
00014    inline void setQuantity( UINT qty );
00015    inline void printName() const;
00016    inline virtual double earnings() const;
00017 
00018 private:
00019    double salary;         // Base salary per week
00020    double commission;     // Amount per item sold
00021    UINT   quantity;       // Total items sold for week
00022 };
00023 
00024 #include <j2k/Fred/Job/CommisionWorker.inl>
00025 
00026 #endif
00027 

Generated on Sun Oct 14 18:46:31 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001