// JobStream.h Dave Reed 9/9/03 // // JobStream class //////////////////////////////////////////////////////////////// #ifndef _JOBSTREAM_ #define _JOBSTREAM_ #include #include #include "Job.h" #include using namespace std; class JobStream { public: JobStream(string filename); // CONSTRUCTOR, INITIALIZES TO DATA FILE bool JobsRemaining() const; // RETURNS TRUE IF ANY JOBS LEFT TO BE PROCESSED bool JobHasArrived(int time) const; // RETURNS TRUE IF JOB HAS ARRIVED BY GIVEN TIME Job GetJob(); // RETURNS NEXT JOB (AND REMOVES FROM STREAM) private: queue arrivingJobs; }; #endif