Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

person Class Reference

#include <person.h>

Inheritance diagram for person:

Inheritance graph
[legend]
Collaboration diagram for person:

Collaboration graph
[legend]
List of all members.

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
email 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...

email 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...


Constructor & Destructor Documentation

person::person  
 

virtual person::~person   [virtual]
 

person::person const person &    p
 


Member Function Documentation

string person::ToFileFmt   [virtual]
 

Converts field to the current file format.

Reimplemented from field.

Reimplemented in employee, faculty, gstud, staff, student, and ustud.

string person::ToParse int    fld [virtual]
 

Gets neccessary data to parse string.

Reimplemented from field.

Reimplemented in employee, faculty, gstud, staff, and ustud.

string person::ToString   [virtual]
 

Returns the field as a string.

Reimplemented from field.

Reimplemented in employee, faculty, gstud, staff, student, and ustud.

void person::copy const person &    p [protected]
 

address person::getAddress   const [inline]
 

00056     {
00057         return m_address;
00058     }

dob person::getDob   const [inline]
 

00081     {
00082         return m_dob;
00083     }

email person::getEmail   const [inline]
 

00061     {
00062         return m_email;
00063     }

id person::getId   const [inline]
 

00066     {
00067         return m_id;
00068     }

name person::getName   const [inline]
 

00071     {
00072         return m_name;
00073     }

phone person::getPhone   const [inline]
 

00076     {
00077         return m_phone;
00078     }

ssn person::getSsn   const [inline]
 

00086     {
00087         return m_ssn;
00088     }

int person::key   [inline]
 

00130     {
00131         return m_id.getIdInt();
00132     }

bool person::operator< const person &    rhs [inline]
 

00045     {
00046         return (m_id < rhs.m_id);
00047     }

const person& person::operator= const person &    rhs
 

bool person::operator> const person &    rhs [inline]
 

00050     {
00051         return (m_id.getIdInt() > rhs.m_id.getIdInt());
00052     }

virtual void person::removea int    index [pure virtual]
 

Reimplemented in employee, faculty, gstud, staff, student, and ustud.

virtual void person::removec int    cIndex [pure virtual]
 

If this is a student, remove the course, otherwise, do nothing.

Reimplemented in employee, faculty, staff, and student.

virtual void person::removes int    index [pure virtual]
 

Reimplemented in employee, faculty, staff, and student.

void person::setAddress const address   a [inline]
 

00091     {
00092         m_address = a;
00093     }

void person::setDob const dob   d [inline]
 

00116     {
00117         m_dob = d;
00118     }

void person::setEmail const email   e [inline]
 

00096     {
00097         m_email = e;
00098     }

void person::setId const id   i [inline]
 

00101     {
00102         m_id = i;
00103     }

void person::setName const name   n [inline]
 

00106     {
00107         m_name = n;
00108     } 

void person::setPhone const phone   p [inline]
 

00111     {
00112         m_phone = p;
00113     }

void person::setSsn const ssn   s [inline]
 

00121     {
00122         m_ssn = s;
00123     }


Member Data Documentation

address person::m_address [protected]
 

This person's address.

dob person::m_dob [protected]
 

This persons date of birth.

email person::m_email [protected]
 

This persons email.

id person::m_id [protected]
 

This person's id.

name person::m_name [protected]
 

This person's name.

phone person::m_phone [protected]
 

This person's phone number.

ssn person::m_ssn [protected]
 

This person's social security number.


The documentation for this class was generated from the following file:
Generated on Mon Oct 22 20:19:19 2001 for University People Management System by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001