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

email.h

Go to the documentation of this file.
00001 // email.h
00002 //
00003 
00004 #if !defined(email_h)
00005 #define email_h
00006 #include <string>
00007 
00008 using namespace std;
00009 
00010 /*
00011  * This class maintains all information necessary to represent an
00012  * email address.
00013  */
00014 
00015 #include "field.h"
00016 
00017 
00018 class email : public field
00019 {
00020 public:
00021     email();
00022     virtual ~email();
00023     email(const email& e);
00024     const email& operator=(const email& rhs);
00025     bool operator<(const email& e);
00026 public:
00027     inline string getEmail() const
00028     {
00029         return m_email;
00030     }
00031 
00032     inline void setEmail(const string& email)
00033     {
00034         m_email = email;
00035     }
00036     
00037     virtual string ToParse(int fld);
00038     virtual string ToString();
00039     virtual string ToFileFmt();
00040 
00041 protected:
00042     void copy(const email& e);
00043 
00044     /*
00045      * The email address.
00046      */
00047     string  m_email;
00048 
00049 private:
00050 
00051 
00052 };
00053 
00054 #endif /* email_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