-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHospital.h
35 lines (28 loc) · 976 Bytes
/
Hospital.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class Hospital
{
public:
Hospital ( const String &in_name );
void add_patient(string doctor_firstname,
string doctor_lastname,
Patient *patient);
/* search for the Doctor then the patient
* once you find the patient, then drop it
*/
void delete_patient(string doctor_firstname,
string doctor_lastname,
string firstname,
string lastname);
/* search for doctor then patient
*/
Patient* search_patient(string doctor_firstname,
string doctor_lastname,
string firstname,
string lastname);
void hire_doctor(string doctor_firstname, string doctor_lastname);
void fire_doctor(string doctor_firstname, string doctor_lastname);
Doctor* search_doctor(string doctor_firstname, string doctor_lastname);
friend ostream& operator<<( ostream &os, Hospital &hospital);
private:
string name;
Double_list *doctors;
};