#ifndef _PERSON_H #define _PERSON_H #include "DBEntity.h" class Person: public DBEntity { const char *m_fullname; friend class TIPsDatabase; public: //when created from the Entity load @ startup Person(TIPsDatabase *_db, const char *_name, const bool _commonword, const unsigned int _id): DBEntity(_db, _name, _commonword, _id), m_fullname(0) {} //when created from the ObjectParser on www.whosaliveandwhosdead.com: Person(TIPsDatabase *_db, const InternetResource *_ir, const char *_commonalias, const char *_fullname): DBEntity(_db, _ir, _commonalias), m_fullname(strdupCheck(_fullname)) {} ~Person() { if (m_fullname) free((void*) m_fullname); } void addToDB(); }; #endif