-
Notifications
You must be signed in to change notification settings - Fork 0
/
Appointment.h
53 lines (46 loc) · 1.18 KB
/
Appointment.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef APPOINTMENT_H_INCLUDED
#define APPOINTMENT_H_INCLUDED
#include <iostream>
using namespace std;
class Appointment{
int thisID;
string doctor_id;
string patient_id;
string slot_id;
string reason;
string diagnosis_id;
string prescribed_medication;
public:
//constructors
Appointment();
Appointment(string,string,string,string,string,string);
//getters
int getId();
string getDoctor_id();
string getPatiend_id();
string getSlot_id();
string getReason();
string getDiagnosis_id();
string getPerscribed_medication();
//setters
void setDoctor_id(string);
void setPatient_id(string);
void setSlot_id(string);
void setReason(string);
void setDiagnosis_id(string);
void setPerscribed_medication(string);
void incrementId();
void print(std::ostream& out)const;
void read(std::istream& in);
};
inline
std::ostream& operator<< (std::ostream& out, const Appointment& a){
a.print(out);
return out;
}
inline
std::istream& operator>> (std::istream& in,Appointment& a){
a.read(in);
return in;
}
#endif // APPOINTMENT_H_INCLUDED