/* CS471B Assignment 2: University Instructor: Wade Holst Submitted by: Dan Fraser Student number: 001219229 File Name: Faculty.h File description: Class definition of Faculty Composite class */ #ifndef _FACULTY_H_ #define _FACULTY_H_ #include "FacultyComponent.h" #include "DepartmentComponent.h" #include #include #include "Professor.h" class Faculty : public FacultyComponent { public: ~Faculty(); // destroy the faculty, delete() its components void add(DepartmentComponent *); // add a new department/person void del(DepartmentComponent *); // delete a department/person int getTopMark() const; // find the top mark in the component int getTotalStudents() const; // find the number of students int getTotalPeople() const; // find the number of people Professor *getTopProfessor(); // find and return the top prof private: vector _departments; // store the components }; #endif