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

phonenum.h

Go to the documentation of this file.
00001 // phonenum.h
00002 //
00003 // Justin Olson
00004 // University of Utah
00005 // 09/11/2001
00006 //
00007 // This file contains the phoneNum class responsible for handling
00008 // phone numbers
00010 #ifndef PHONENUM_091101_H
00011 #define PHONENUM_091101_H
00012 
00013 #include <string>
00014 #include "field.h"
00015 using namespace std;
00016 
00018 class phoneNum : public field
00019 {
00020 public:
00021     phoneNum();
00022     ~phoneNum();
00023     phoneNum(const phoneNum& n);
00024     phoneNum& operator=(const phoneNum& n);
00025     
00026 public:
00028     inline void phoneNum::SetArea(const string& Area)
00029     {
00030         m_Area = Area;
00031     }
00032 
00034     inline void phoneNum::SetPrefix(const string& Prefix)
00035     {
00036         m_Prefix = Prefix;
00037     }
00038     
00040     inline void phoneNum::SetSuffix(const string& Suffix)
00041     {
00042         m_Suffix = Suffix;
00043     }
00044 
00046     inline string phoneNum::GetArea() const
00047     {
00048         return m_Area;
00049     }
00050 
00052     inline string phoneNum::GetPrefix() const
00053     {
00054         return m_Prefix;
00055     }
00056 
00058     inline string phoneNum::GetSuffix() const
00059     {
00060         return m_Suffix;
00061     }
00062 
00064     string ToString();
00066     string ToFileFmt();
00068     bool operator<(const phoneNum& p);
00070     bool operator ==(const phoneNum& p);
00071 private:
00072     string m_Area;      
00073     string m_Prefix;    
00074     string m_Suffix;    
00075 };
00076 
00077 #endif

Generated on Mon Oct 22 20:18:45 2001 for University People Management System by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001