radec/src/Event.h

23 lines
398 B
C
Raw Permalink Normal View History

2017-04-23 19:13:23 -04:00
#ifndef EVENT
#define EVENT
using namespace std;
#include "Wire.h"
class Event {
public:
Event(int value, int setTime, Wire * output);
2017-04-23 19:13:23 -04:00
friend bool operator<(const Event &e1, const Event &e2);
int getValue() const;
int getTime() const;
Wire* getOutput() const;
2017-04-24 22:35:44 -04:00
void setNum(int num);
2017-04-23 19:13:23 -04:00
private:
int evNum, evValue, evTime;
Wire *out;
static int numOfEvents;
2017-04-23 19:13:23 -04:00
};
#endif // !EVENT