00001
00002
00003
00004 #if !defined(id_h)
00005 #define id_h
00006 #include <string>
00007
00008 using namespace std;
00009
00010
00011
00012
00013
00014 #include "field.h"
00015
00016
00017 class id : public field
00018 {
00019 public:
00020 id();
00021 virtual ~id();
00022 id(const id& i);
00023 const id& operator=(const id& rhs);
00024 bool operator<(const id& i);
00025 public:
00026
00027 inline int getIdInt() const
00028 {
00029 return m_id;
00030 }
00031
00032 inline void setIdInt(const int& i)
00033 {
00034 m_id = i;
00035 }
00036
00037 string ToParse(int fld);
00038 string ToString();
00039 string ToFileFmt();
00040
00041 protected:
00042 void copy(const id& i);
00043
00044
00045
00046
00047 int m_id;
00048
00049 private:
00050
00051
00052 };
00053
00054 #endif