-
Notifications
You must be signed in to change notification settings - Fork 1
/
Event.hpp
44 lines (37 loc) · 808 Bytes
/
Event.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef EVENT_HPP
#define EVENT_HPP
#include <iostream>
#include <sstream>
#include <string>
#include <cstdio>
#include <vector>
#include <map>
#include <unordered_map>
/**
* is a line of code
*/
class Event{
public:
enum class EventType { // type of event
undefined = 0,
Condition,
Location,
Output,
Invocation
};
int lineNum; // line number
int idx; // idx in log
EventType type;
Event* context;
std::string value;
int loopId; int startLoopId;
// Constructors
Event();
Event(const int num);
Event(const int num, const Event::EventType t);
// Event(const int num, EventType t);
bool operator== (const Event& rhs) const;
bool operator!= (const Event& rhs) const;
void print();
};
#endif