#ifndef PROF_H #define PROF_H #ifndef CSTRING_H #define CSTRING_H // Even if you don't know the guard for a header you can put // your own guard in place. #include #endif #ifndef DARRAY_H #include "darray.h" #endif #ifndef RCPOINTE_H #include "rcpointe.h" #endif class Professor { public: Professor(const string &last ="",const string &first ="", const string &init ="", const string & office ="", const string &phone="",int rank =0); void setValues(const string &last ="",const string &first ="", const string &init ="", const string & office ="", const string &phone="",int rank =0);//needed to reset values after editing void name(char*);//return entire name as a string void office(char *);//return office number as a string void phone (char *);//return phone as a string int operator == (const string &)const;// used to find a given professor in array int operator == (const Professor & p)const; void completeList(char *);//complete listing of prof //The following are needed to fill in entries in dialog box string first(){return _firstName;} string last(){return _lastName;} string initial(){return _initial;} string phone(); string office(){return _office;} int rank(){return _rank;} private: string _lastName; string _firstName; string _initial; string _office; string _phone; int _rank; }; typedef RcPointer ProfPtr; class ProfArray :public Array { public: ProfArray(){} void deleteItemAt(int where); ProfPtr getDeletedProf(){return _oldValue;} int getEditNumber(){return _editNumber;} void undoDelete(){insertItemAt(_oldValue,_editNumber);} private: ProfPtr _oldValue; int _editNumber; }; typedef RcPointer ProfListPtr; #endif