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

ssn.h

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