00001
00002
00003
00004 #if !defined(name_h)
00005 #define name_h
00006
00007
00008
00009
00010
00011
00012 #include "field.h"
00013
00014
00015 class name : public field
00016 {
00017 public:
00018 name();
00019 virtual ~name();
00020 name(const name& n);
00021 const name& operator=(const name& rhs);
00022 bool operator<(const name& rhs);
00023 bool operator==(const name&rhs);
00024
00025 public:
00026 inline string getFirst() const
00027 {
00028 return m_first;
00029 }
00030
00031 inline string getLast() const
00032 {
00033 return m_last;
00034 }
00035
00036 inline string getMiddle() const
00037 {
00038 return m_middle;
00039 }
00040
00041 inline void setFirst(const string& f)
00042 {
00043 m_first = f;
00044 }
00045
00046 inline void setMiddle(const string& m)
00047 {
00048 m_middle = m;
00049 }
00050
00051 inline void setLast(const string& l)
00052 {
00053 m_last = l;
00054 }
00055
00056 string ToParse(int fld);
00057 string ToString();
00058 string ToFileFmt();
00059
00060 protected:
00061 void copy(const name& n);
00062
00063
00064
00065
00066 string m_first;
00067
00068
00069
00070 string m_last;
00071
00072
00073
00074 string m_middle;
00075
00076 private:
00077
00078
00079 };
00080
00081 #endif