-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrecord.cpp
More file actions
87 lines (65 loc) · 1.53 KB
/
record.cpp
File metadata and controls
87 lines (65 loc) · 1.53 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#include "record.h"
record::record(std::string *params){ //constructor basei twn gnwrismatwn poy ekshxthhsan apo grammh input
//std::cout << "i am construcotrrrrr";
recordID = params[0];
patientFirstName = params[1];
patientLastName = params[2];
diseaseID = params[3];
country = params[4];
entryDate = params[5];
exitDate = params[6];
age = std::stoi(params[7]);
}
//destructor, sxoliasmeno eswteriko gt to eixa dokimasei kai me pointers alla de xreiasthke
record::~record(){
}
//setters
void record::set_recordID(std::string newid){
recordID = newid;
}
void record::set_patientFirstName(std::string newfn){
patientFirstName = newfn;
}
void record::set_patientLastName(std::string newln){
patientLastName = newln;
}
void record::set_diseaseID(std::string newid){
diseaseID = newid;
}
void record::set_country(std::string newc){
country = newc;
}
void record::set_entryDate(std::string newed){
entryDate = newed;
}
void record::set_exitDate(std::string newed){
exitDate = newed;
}
void record::set_age(int newage){
age = newage;
}
//getters
std::string record::get_recordID(){
return recordID;
}
std::string record::get_patientFirstName(){
return patientFirstName;
}
std::string record::get_patientLastName(){
return patientLastName;
}
std::string record::get_diseaseID(){
return diseaseID;
}
std::string record::get_country(){
return country;
}
std::string record::get_entryDate(){
return entryDate;
}
std::string record::get_exitDate(){
return exitDate;
}
int record::get_age(){
return age;
}