00001 00004 class PersonRecord : public Record 00005 { 00006 private : 00007 string m_oStrPersonName; 00008 00009 unsigned int m_ui32Age; 00010 00011 public : 00012 PersonRecord(const string& _oStrPersonName, unsigned int _ui32Age) 00013 : Record(), m_oStrPersonName(_oStrPersonName), 00014 m_ui32Age(_ui32Age) 00015 { 00016 } 00017 00018 PersonRecord(const PersonRecord& _oPersonRecord) 00019 : Record() 00020 { 00021 m_oStrPersonName = _oPersonRecord.m_oStrPersonName; 00022 m_ui32Age = _oPersonRecord.m_ui32Age; 00023 } 00024 00025 ~PersonRecord() {} 00026 00027 Record* Clone() const 00028 { 00029 return new PersonRecord(*this); 00030 } 00031 00032 void Print() const 00033 { 00034 cout << "Person Record" << endl 00035 << "Name : " << m_oStrPersonName << endl 00036 << "Age : " << m_ui32Age << endl << endl ; 00037 } 00038 };