// Job.h Dave Reed 1/20/05 // // Job class /////////////////////////////////////////////////////////////////////////////// #ifndef _JOB_ #define _JOB_ #include using namespace std; enum JobStatus {OK, DONE}; class Job { public: Job(int id = 0, int len = 0); // constructor bool read(istream & istr); // reads job data from an input stream int getID() const; // returns the id number of the job int getJobLength() const; // returns the length of the job int getRemainingTime() const; // returns time remaining to execute JobStatus execute(); // executes the job, returning its status (OK or DONE) private: int jobID; int jobLength; int timeRemaining; }; #endif