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

CAddressBook Class Reference

Linked list of CPerson items, in lexicographical order by name. More...

#include <CDataStructures.h>

Inheritance diagram for CAddressBook::

CList List of all members.

Public Methods

 CAddressBook (void)
 ~CAddressBook (void)
CPersongetItem (void)
 Returns the internal pointer. More...

CPersongetItem (int number)
 Returns the item that is in position number, where the head is 1. More...

bool isSortedByLastName (void)
 Returns true if Address entries are sorted by last name. More...

void setSortedByLastName (void)
 Resort the Address book by last name. More...

void setSortedByFirstName (void)
 Resort the Address book by first name. More...

bool insertItem (CPerson *person)
 Use only this for all CPerson inserts into the Address book. More...

bool gotoPerson (string fullname, bool lastthenfirst=true)
void inputData (string inputdata)
string outputData (void)

Detailed Description

Linked list of CPerson items, in lexicographical order by name.

Supports automatic reordering by last, then first name or vice versa on call. Supports saving and loading all data automatically via a string for up/downloading and reading/writing to files on the Dijinni


Constructor & Destructor Documentation

CAddressBook::CAddressBook void   
 

CAddressBook::~CAddressBook void   
 


Member Function Documentation

CPerson * CAddressBook::getItem int    number
 

Returns the item that is in position number, where the head is 1.

Returns NULL if the number is out of range for the list.

Reimplemented from CList.

CPerson * CAddressBook::getItem void   
 

Returns the internal pointer.

Reimplemented from CList.

bool CAddressBook::gotoPerson string    fullname,
bool    lastthenfirst = true
 

void CAddressBook::inputData string    inputdata
 

bool CAddressBook::insertItem CPerson   person
 

Use only this for all CPerson inserts into the Address book.

Will not allow two people to be entered who have same first and last names as well as middle initials The user must differentiate beteen the two somehow

bool CAddressBook::isSortedByLastName void   
 

Returns true if Address entries are sorted by last name.

string CAddressBook::outputData void   
 

void CAddressBook::setSortedByFirstName void   
 

Resort the Address book by first name.

void CAddressBook::setSortedByLastName void   
 

Resort the Address book by last name.


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