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

CPerson Class Reference

Basic data structure for a person entry for the address book. More...

#include <CDataStructures.h>

Inheritance diagram for CPerson::

CListItem List of all members.

Public Methods

 CPerson ()
 CPerson (CPerson *p)
 ~CPerson ()
string getName (bool lastthenfirst=true)
 Returns full name in either order. More...

string getLastName (void)
string getFirstName (void)
string getMiddleInitial (void)
string getHomePhoneNumber (void)
string getCellPhoneNumber (void)
string getWorkPhoneNumber (void)
string getDefaultPhoneNumber (void)
 Returns the default phone number to call. More...

string getStreet (void)
string getCity (void)
string getState (void)
string getZip (void)
string getCountry (void)
string getEmail (void)
string getComment (void)
string getCategory (void)
 Used for supporting categories for people,. More...

void setLastName (string lastname)
void setFirstName (string firstname)
bool setMiddleInitial (string initial)
 Set middle initial, must be one character length string. More...

void setHomePhoneNumber (string homephone)
void setCellPhoneNumber (string cellphone)
void setWorkPhoneNumber (string workphone)
bool setDefaultPhoneNumber (string defaultphone)
 Sets the default phone number to return. More...

void setStreet (string street)
void setCity (string city)
void setState (string state)
void setZip (string zip)
void setCountry (string country)
void setEmail (string email)
void setComment (string comment)
bool setCategory (string category)
 Sets the category of this CPerson. More...

void inputData (string inputdata)
string outputData (void)

Detailed Description

Basic data structure for a person entry for the address book.

and subclassed from CListItem to be a linked list node for the address book. Stores first name, last name, middle initial, home, cell and work phone numbers, email, comment, full address. Provides nice routine for outputing name in either first then last name or vice-versa. Also provides initialization and saving routines to be used for saving and initializing the device, up/downloading to PC and backup.


Constructor & Destructor Documentation

CPerson::CPerson  
 

CPerson::CPerson CPerson *    p
 

CPerson::~CPerson  
 


Member Function Documentation

string CPerson::getCategory void   
 

Used for supporting categories for people,.

string CPerson::getCellPhoneNumber void   
 

string CPerson::getCity void   
 

string CPerson::getComment void   
 

string CPerson::getCountry void   
 

string CPerson::getDefaultPhoneNumber void   
 

Returns the default phone number to call.

string CPerson::getEmail void   
 

string CPerson::getFirstName void   
 

string CPerson::getHomePhoneNumber void   
 

string CPerson::getLastName void   
 

string CPerson::getMiddleInitial void   
 

string CPerson::getName bool    lastthenfirst = true
 

Returns full name in either order.

Returns either "Firstname I. Lastname" or "Lastname, Firstname I." for a CPerson depending on boolean value.

string CPerson::getState void   
 

string CPerson::getStreet void   
 

string CPerson::getWorkPhoneNumber void   
 

string CPerson::getZip void   
 

void CPerson::inputData string    inputdata
 

string CPerson::outputData void   
 

bool CPerson::setCategory string    category
 

Sets the category of this CPerson.

'U' unfiled 'P' personal 'F' family 'B' business

void CPerson::setCellPhoneNumber string    cellphone
 

void CPerson::setCity string    city
 

void CPerson::setComment string    comment
 

void CPerson::setCountry string    country
 

bool CPerson::setDefaultPhoneNumber string    defaultphone
 

Sets the default phone number to return.

getDefaultPhoneNumber(). 'H' for home 'C' for cell 'W' for work If none is set will, return first nonempty phonenumber, searching first home, than cell, than work. If no numbers are set, will return empty string

void CPerson::setEmail string    email
 

void CPerson::setFirstName string    firstname
 

void CPerson::setHomePhoneNumber string    homephone
 

void CPerson::setLastName string    lastname
 

bool CPerson::setMiddleInitial string    initial
 

Set middle initial, must be one character length string.

void CPerson::setState string    state
 

void CPerson::setStreet string    street
 

void CPerson::setWorkPhoneNumber string    workphone
 

void CPerson::setZip string    zip
 


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:56 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001