/***********************************************************************/ /* Course: Computer Science 402a */ /* Assignment: Assignment 3 */ /* Instructor: Mark Giesbrecht */ /* Submitted by: Dan Fraser */ /* Student Number: 001219229 */ /* Due Date: Wednesday, February 16 */ /***********************************************************************/ /* Meeting.h - Interface for the Meeting class */ /***********************************************************************/ #ifndef _MEETING_H_ #define _MEETING_H_ #include #include class Meeting { public: /************************************************************************ Function Name: Meeting - constrcutor Input Parameters: uid - meeting called by uid (integer) length - integer meeting length (length / 15) start - integer internal start time Output Parameters: n/a Description: creates and initalizes meeting object ************************************************************************/ Meeting(int uid, int length); Meeting(int uid, int start, int length); /************************************************************************ Function Name: addAttendee Input Parameters: uid - uid of person attending meeting Output Parameters: n/a Description: adds attendee to meeting ************************************************************************/ void addAttendee(int uid); /************************************************************************ Function Name: getAttendees Input Parameters: n/a Output Parameters: pointer to vector Description: returns list of all attendees ************************************************************************/ vector *getAttendees(); /************************************************************************ Function Name: makeTentative Input Parameters: n/a Output Parameters: n/a Description: makes the meeting tentative ************************************************************************/ void makeTentative() { _tentative = 1; }; /************************************************************************ Function Name: isTentative Input Parameters: n/a Output Parameters: boolean tentative value Description: returns true if meeting is tentative ************************************************************************/ bool isTentative() { return _tentative; }; /************************************************************************ Function Name: makeConfirmed Input Parameters: n/a Output Parameters: n/a Description: mark meeting as confirmed ************************************************************************/ void makeConfirmed() { _tentative = 0; }; /************************************************************************ Function Name: accessor methods Input Parameters: n/a n/a Output Parameters: returns values or refs where appropriate Description: n/a ************************************************************************/ int getLength() { return _length; }; int getStart() { return _start; }; int &setStart() { return _start; }; int getID() { return _id; } bool operator== (Meeting); bool operator!= (Meeting); private: int _id; // the meeting's id int _originator; // uid of meeting originator int _start; // start time of meeting int _length; // length of meeting int _tentative; // 1 if meeting is tentative static int _serial; // class serial number vector _attendees; // vector of meeting attendee uids. }; #endif