//----------------------------------------------------------------------
//  SPECIFICATION FILE (eventq.h)
//----------------------------------------------------------------------
#ifndef EVENTQ_H
#define EVENTQ_H

#include "bool.h"
#include "event.h"
#include "debug.h"

struct NodeType;
typedef NodeType *NodePtr;

struct NodeType
{
	Event   *event;
	NodePtr link;
};

class EventQ {
private:
    int Count;
    NodeType *Front;
    NodeType *Rear;

public:
    EventQ();           // Constructor

    ~EventQ();          //destructor
    
    Boolean IsEmpty() const;

    void Enqueue( Event * );

    Event *Dequeue();

    void Display();
};
#endif

