// JobStream.h Dave Reed 9/9/03 // // JobStream class //////////////////////////////////////////////////////////////// #ifndef _JOBSTREAM_ #define _JOBSTREAM_ #include #include "Job.h" #include "Queue.h" using namespace std; class JobStream { public: JobStream(string filename); // constructor, initializes to data file bool JobsRemaining() const; // returns true if any jobs are left to be processed bool JobHasArrived(int time) const; // returns true if a job has arrived by given time Job GetJob(); // returns the next job (and removes from stream) private: Queue arrivingJobs; }; #endif