/*    Lawrenceville Press TopListClass type DECLARATION      */
/*    This library file modified to operate with CodeWarrior 3.3 */
/*	  September 1998                                         */

#ifndef _TOPLIST_
#define _TOPLIST_

#include <iostream.h>
#include <fstream.h>
//#include <bool.h>
#include <lvpstring.h>
#include <lvpvector.h>


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<lvpstring> NameList;
		lvpvector<long> 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 <toplist.cpp>
#endif
