/* Lawrenceville Press TopListClass type DECLARATION */ /* This library file modified to operate with CodeWarrior 3.3 */ /* September 1998 */ #ifndef _TOPLIST_ #define _TOPLIST_ #include #include //#include #include #include class TopListClass { public: TopListClass(lvpstring Filename, int MaxItemsArg=10); ~TopListClass(); lvpstring GetName(int Rank) const; long GetScore(int Rank) const; void AddItem(long Score, lvpstring Name); void ClearData(); int GetListSize() const; void Display (ostream & os) const; private: lvpvector NameList; lvpvector ScoreList; lvpstring FN; // File name to store data int MaxItems; // Following are made private to prevent copying of objects TopListClass(const TopListClass &T); operator=(const TopListClass &T); }; #include #endif