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

address.h

Go to the documentation of this file.
00001 // address.h
00002 //
00003 
00004 #if !defined(address_h)
00005 #define address_h
00006 #include <string>
00007 
00008 using namespace std;
00009 
00010 /*
00011  * This class maintains information for an address.
00012  */
00013 
00014 #include "field.h"
00015 
00016 class address : public field
00017 {
00018 public:
00019     address();
00020     virtual ~address();
00021     address(const address& a);
00022     const address& operator=(const address& rhs);
00023     bool operator<(address& rhs);
00024 
00025 public:
00026     inline string getStreet() const
00027     {
00028         return m_street;
00029     }
00030 
00031     inline string getCity() const
00032     {
00033         return m_city;
00034     }
00035 
00036     inline string getState() const
00037     {
00038         return m_state;
00039     }
00040 
00041     inline string getZip() const
00042     {
00043         return m_zip;
00044     }
00045 
00046     inline void setStreet(const string& s)
00047     {
00048         m_street = s;
00049     }
00050 
00051     inline void setCity(const string& city)
00052     {
00053         m_city = city;
00054     }
00055 
00056     inline void setState(const string& state)
00057     {
00058         m_state = state;
00059     }
00060 
00061     inline void setZip(const string& z)
00062     {
00063         m_zip = z;
00064     }
00065 
00066     virtual string ToParse(int fld);
00067     virtual string ToString();
00068     virtual string ToFileFmt();
00069 
00070 protected:
00071     void copy(const address& a);
00072 
00074     string  m_street;
00075     
00077     string  m_city;
00078     
00080     string  m_state;
00081 
00083     string  m_zip;
00084 
00085 private:
00086 
00087 
00088 };
00089 
00090 #endif /* address_h */

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