#include <CDataStructures.h>
Inheritance diagram for CAddressBook::
Public Methods | |
CAddressBook (void) | |
~CAddressBook (void) | |
CPerson * | getItem (void) |
Returns the internal pointer. More... | |
CPerson * | getItem (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) |
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
|
|
|
|
|
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. |
|
Returns the internal pointer.
Reimplemented from CList. |
|
|
|
|
|
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 |
|
Returns true if Address entries are sorted by last name.
|
|
|
|
Resort the Address book by first name.
|
|
Resort the Address book by last name.
|