#ifndef _LVPTOPLIST_ #define _LVPTOPLIST_ #include "cvclibdef.h" #include "string.h" #include "vector.h" class TopListClass { public: TopListClass(String Filename, int MaxItemsArg=10); ~TopListClass(); String GetName(int Rank) const; long GetScore(int Rank) const; void AddItem(long Score, String Name); void TopListClass::Clear(); int GetListSize() const; void Display (ostream & os) const; private: vector NameList; vector ScoreList; String 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); }; #endif