// pstand.h: the pump-stand class for the CSC 270 simulation example
// -- J. Clarke, March-June 1996

#include "porting.h"

class pumpStandClass {
private:
	typedef pumpClass * pumpListItem;
	pumpListItem * pumps; // A stack of pumps
	int numPumps;
	int topPump;

public:
	pumpStandClass (int);
	int howManyPumps (void) {return numPumps;}; // needed for statistics
	bool existsAvailablePump (void) {return topPump >= 0;};
	pumpClass * getAvailablePump (void);
	void releasePump (pumpClass *&);
};
