-
Notifications
You must be signed in to change notification settings - Fork 0
/
alerta.cpp
74 lines (61 loc) · 1.25 KB
/
alerta.cpp
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
#include "alerta.h"
#include <iostream>
void Alerta::setPaciente(const string &value)
{
paciente = value;
}
string Alerta::getPaciente() const
{
return paciente;
}
string Alerta::getMedico() const
{
return medico;
}
void Alerta::setMedico(const string &value)
{
medico = value;
}
Alerta::Alerta(string paciente, string medico, string date, string mensagem, string emailDestino)
{
setData(date);
setPaciente(paciente);
setMedico(medico);
setEmailDestino(emailDestino);
setMensagem(mensagem);
}
string Alerta::getData() const
{
return data;
}
void Alerta::setData(const string &value)
{
data = value;
}
string Alerta::getMensagem() const
{
return message;
}
void Alerta::setMensagem(const string &value)
{
message = value;
}
string Alerta::getEmailDestino() const
{
return emailDestino;
}
void Alerta::setEmailDestino(const string &value)
{
emailDestino = value;
}
void Alerta::display()
{
cout << endl;
cout << "Alerta" << endl;
cout << "Destinatario: " << getEmailDestino() << endl;
cout << "Mensagem: " << getMensagem() << endl;
cout << "Paciente: " << getPaciente() << endl;
cout << "Medico: " << getMedico() << endl;
cout << "Data: " << getData() << endl;
cout << endl;
}