-
Notifications
You must be signed in to change notification settings - Fork 1
/
Person.h
63 lines (57 loc) · 1.99 KB
/
Person.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
#include <string>
using namespace std;
string SSNHyphens(const string & aSSN);
string SSNNoHyphens(const string & aSSN);
string ZipHyphens(const string & aZip);
string ZipNoHyphens(const string & aZip);
class Person
{
public:
Person();
~Person(){}
const string & GetSSN() const { return _SSN; }
string GetSSNWithHyphens() const { return SSNHyphens(_SSN); }
const string & GetZip() const { return _zip; }
string GetZipWithHyphens() const { return ZipHyphens(_zip); }
const string & GetOLN() const { return _OLN; }
const string & GetStateCode() const { return _stateCode; }
const string & GetCountyCode() const { return _countyCode; }
const string & GetLastName() const { return _lastName; }
const string & GetFirstName() const { return _firstName; }
const string & GetMiddleInitial() const { return _middleInitial; }
const string & GetStreet() const { return _street; }
const string & GetCity() const { return _city; }
int GetLength() const { return _length; }
bool IsFound() const { return _found; }
bool IsDeleted() const { return _deleted; }
void SetDeleted(bool inDeleted) { _deleted = inDeleted; }
void SetSSN(const string & inSSN) { _SSN = SSNNoHyphens(inSSN); }
void SetOLN(const string & inOLN) { _OLN = inOLN; }
void SetStateCode(const string &);
void SetCountyCode(const string &);
void SetLastName(const string &);
void SetFirstName(const string &);
void SetMiddleInitial(const string &);
void SetStreet(const string &);
void SetCity(const string &);
void SetZip(const string & inZip) { _zip = ZipNoHyphens(inZip); }
void SetFound(bool inFound) { _found = inFound; }
void MakePerson(const string &);
string UnMakePerson();
void DisplayPerson() const;
void PrintPerson() const;
private:
string _SSN;
string _OLN;
string _stateCode;
string _countyCode;
string _lastName;
string _firstName;
string _middleInitial;
string _street;
string _city;
string _zip;
int _length;
bool _deleted;
bool _found;
};