-
Notifications
You must be signed in to change notification settings - Fork 0
/
clsPerson.h
93 lines (68 loc) · 1.32 KB
/
clsPerson.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
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
88
89
90
91
92
#pragma once
#include "clsString.h"
#include "InterfaceCommunication.h"
class clsPerson : public InterfaceCommunication
{
private :
string _FirstName;
string _LastName;
string _Email;
string _Phone;
public :
clsPerson(string FirstName, string LastName, string Email, string Phone)
{
_FirstName = FirstName;
_LastName = LastName;
_Email = Email;
_Phone = Phone;
}
void SetFirstName(string FirstName)
{
_FirstName = FirstName;
}
string GetFirstName()
{
return _FirstName;
}
__declspec(property(get = GetFirstName, put = SetFirstName)) string FirstName;
void SetLastName(string LastName)
{
_LastName = LastName;
}
string GetLastName()
{
return _LastName;
}
__declspec(property(get = GetLastName, put = SetLastName)) string LastName;
void SetEmail(string Email)
{
_Email = Email;
}
string GetEmail()
{
return _Email;
}
__declspec(property (get = GetEmail, put = SetEmail)) string Email;
void SetPhone(string Phone)
{
_Phone = Phone;
}
string GetPhone()
{
return _Phone;
}
__declspec(property (get = GetPhone, put = SetPhone)) string Phone;
string FullName()
{
return _FirstName + " " + _LastName;
}
void SendEmail(string Title, string Body)
{
}
void SendFax(string Title, string Body)
{
}
void SendSMS(string Title, string Body)
{
}
};