//CatalogEntry.h //Brooke Loftus #ifndef CATALOG_ENTRY #define CATALOG_ENTRY #include //#include #include #include"CatalogEntry.cpp" class CatalogEntry { friend class CatalogNode; friend class Catalog; friend ostream &operator <<(ostream &out, const Catalog &cat); public: CatalogEntry(); friend istream& operator >>(istream &in, CatalogEntry &entry); friend ostream& operator <<(ostream &out, const CatalogEntry &entry); string getAuthor() const; string getTitle() const; string getCallNumber() const; friend bool operator ==(const CatalogEntry &one, const CatalogEntry &two); friend bool operator !=(const CatalogEntry &one, const CatalogEntry &two); friend bool operator <=(const CatalogEntry &one, const CatalogEntry &two); friend bool operator < (const CatalogEntry &one, const CatalogEntry &two); friend bool operator >=(const CatalogEntry &one, const CatalogEntry &two); friend bool operator > (const CatalogEntry &one, const CatalogEntry &two); private: string author; string title; string callNumber; }; #endif