#include <person.h>
Inheritance diagram for person:


Public Methods | |
| person () | |
| virtual | ~person () |
| person (const person &p) | |
| const person & | operator= (const person &rhs) |
| virtual void | removec (int cIndex)=0 |
| If this is a student, remove the course, otherwise, do nothing. More... | |
| virtual void | removes (int index)=0 |
| virtual void | removea (int index)=0 |
| bool | operator< (const person &rhs) |
| bool | operator> (const person &rhs) |
| address | getAddress () const |
| getEmail () const | |
| id | getId () const |
| name | getName () const |
| phone | getPhone () const |
| dob | getDob () const |
| ssn | getSsn () const |
| void | setAddress (const address &a) |
| void | setEmail (const email &e) |
| void | setId (const id &i) |
| void | setName (const name &n) |
| void | setPhone (const phone &p) |
| void | setDob (const dob &d) |
| void | setSsn (const ssn &s) |
| string | ToParse (int fld) |
| Gets neccessary data to parse string. More... | |
| string | ToString () |
| Returns the field as a string. More... | |
| string | ToFileFmt () |
| Converts field to the current file format. More... | |
| int | key () |
Protected Methods | |
| void | copy (const person &p) |
Protected Attributes | |
| address | m_address |
| This person's address. More... | |
| m_email | |
| This persons email. More... | |
| id | m_id |
| This person's id. More... | |
| name | m_name |
| This person's name. More... | |
| phone | m_phone |
| This person's phone number. More... | |
| dob | m_dob |
| This persons date of birth. More... | |
| ssn | m_ssn |
| This person's social security number. More... | |
|
|
|
|
|
|
|
|
|
|
|
Converts field to the current file format.
Reimplemented from field. Reimplemented in employee, faculty, gstud, staff, student, and ustud. |
|
|
Gets neccessary data to parse string.
Reimplemented from field. Reimplemented in employee, faculty, gstud, staff, and ustud. |
|
|
Returns the field as a string.
Reimplemented from field. Reimplemented in employee, faculty, gstud, staff, student, and ustud. |
|
|
|
|
|
00056 {
00057 return m_address;
00058 }
|
|
|
00081 {
00082 return m_dob;
00083 }
|
|
|
00061 {
00062 return m_email;
00063 }
|
|
|
00066 {
00067 return m_id;
00068 }
|
|
|
00071 {
00072 return m_name;
00073 }
|
|
|
00076 {
00077 return m_phone;
00078 }
|
|
|
00086 {
00087 return m_ssn;
00088 }
|
|
|
00130 {
00131 return m_id.getIdInt();
00132 }
|
|
|
00045 {
00046 return (m_id < rhs.m_id);
00047 }
|
|
|
|
|
|
|
|
|
Reimplemented in employee, faculty, gstud, staff, student, and ustud. |
|
|
If this is a student, remove the course, otherwise, do nothing.
|
|
|
|
|
|
00091 {
00092 m_address = a;
00093 }
|
|
|
00116 {
00117 m_dob = d;
00118 }
|
|
|
00096 {
00097 m_email = e;
00098 }
|
|
|
00101 {
00102 m_id = i;
00103 }
|
|
|
00106 {
00107 m_name = n;
00108 }
|
|
|
00111 {
00112 m_phone = p;
00113 }
|
|
|
00121 {
00122 m_ssn = s;
00123 }
|
|
|
This person's address.
|
|
|
This persons date of birth.
|
|
|
This persons email.
|
|
|
This person's id.
|
|
|
This person's name.
|
|
|
This person's phone number.
|
|
|
This person's social security number.
|
1.2.11.1 written by Dimitri van Heesch,
© 1997-2001