#ifndef State_H #define State_H #include #include #include #include "deltext.h" #include "Date.h" using namespace std; class State { public: State(); bool operator==(string s); bool operator>(string s); bool operator>(const State&) const; bool operator<(const State&) const; // Buffer Declarations static int initBuffer (DelimTextBuffer &); int unpack (DelimTextBuffer &); int pack (DelimTextBuffer &) const; private: string name; int pop; int popRank; float popDensity; int areaOfState; int areaRank; Date dateOfAdmission; int orderOfAdmission; string capital; friend ostream& operator<<(ostream&, const State&); friend ifstream& operator>>(ifstream&, State&); }; #endif