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

phoneNum Class Reference

This class maintains phone numbers. More...

#include <phonenum.h>

Inheritance diagram for phoneNum:

Inheritance graph
[legend]
Collaboration diagram for phoneNum:

Collaboration graph
[legend]
List of all members.

Public Methods

 phoneNum ()
 ~phoneNum ()
 phoneNum (const phoneNum &n)
phoneNum & operator= (const phoneNum &n)
void phoneNum::SetArea (const string &Area)
 The area for the phone number. More...

void phoneNum::SetPrefix (const string &Prefix)
 The prefix for the phone number. More...

void phoneNum::SetSuffix (const string &Suffix)
 The suffix for the phone number. More...

string phoneNum::GetArea () const
 Returns the area for this phone number. More...

string phoneNum::GetPrefix () const
 Returns the prefix for this phone number. More...

string phoneNum::GetSuffix () const
 Returns the suffix for this phone number. More...

string ToString ()
 Formats a phone number for printing. More...

string ToFileFmt ()
 Formats a phone number for saving. More...

bool operator< (const phoneNum &p)
 Used for sorting. More...

bool operator== (const phoneNum &p)
 Used for finding. More...


Detailed Description

This class maintains phone numbers.


Constructor & Destructor Documentation

phoneNum::phoneNum  
 

phoneNum::~phoneNum  
 

phoneNum::phoneNum const phoneNum &    n
 


Member Function Documentation

string phoneNum::ToFileFmt   [virtual]
 

Formats a phone number for saving.

Reimplemented from field.

string phoneNum::ToString   [virtual]
 

Formats a phone number for printing.

Reimplemented from field.

bool phoneNum::operator< const phoneNum &    p
 

Used for sorting.

phoneNum& phoneNum::operator= const phoneNum &    n
 

bool phoneNum::operator== const phoneNum &    p
 

Used for finding.

string phoneNum::phoneNum::GetArea   const [inline]
 

Returns the area for this phone number.

00047     {
00048         return m_Area;
00049     }

string phoneNum::phoneNum::GetPrefix   const [inline]
 

Returns the prefix for this phone number.

00053     {
00054         return m_Prefix;
00055     }

string phoneNum::phoneNum::GetSuffix   const [inline]
 

Returns the suffix for this phone number.

00059     {
00060         return m_Suffix;
00061     }

void phoneNum::phoneNum::SetArea const string &    Area [inline]
 

The area for the phone number.

00029     {
00030         m_Area = Area;
00031     }

void phoneNum::phoneNum::SetPrefix const string &    Prefix [inline]
 

The prefix for the phone number.

00035     {
00036         m_Prefix = Prefix;
00037     }

void phoneNum::phoneNum::SetSuffix const string &    Suffix [inline]
 

The suffix for the phone number.

00041     {
00042         m_Suffix = Suffix;
00043     }


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