/***********************************************************************/ /* Course: Computer Science 402a */ /* Assignment: Assignment 1 */ /* Instructor: Mark Giesbrecht */ /* Submitted by: Dan Fraser */ /* Student Number: 001219229 */ /* Due Date: Wednesday, February 16 */ /***********************************************************************/ /* Busy.h - interface for the Busy class */ /***********************************************************************/ #ifndef _BUSY_H_ #define _BUSY_H_ #define DAYLEN 160 #include "Meeting.h" #include #include class Busy { public: Busy(); bool allocate(Meeting *meeting, int start, int length); bool deallocate(int start, int length); bool check(Busy busylist); bool check(int start, int length); Meeting *getMeeting(int start) { return meetings[start]; } bool deallocate(Meeting *meeting); void print(); char *pack(); string realTime(int time); protected: bool checkTime(int time); private: Meeting *meetings[DAYLEN]; }; #endif