-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent.h
More file actions
25 lines (24 loc) · 692 Bytes
/
Event.h
File metadata and controls
25 lines (24 loc) · 692 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "Direction.h"
#include "Time.h"
#include <string>
class TimeStamp;
class Entity;
class Event
: public Time
{
protected:
int entityId = 0;
Direction direction = In;
public:
Event();
Event(std::string payload);
int getEntityId() { return entityId; }
void setEntityId(int entityId) { this->entityId = entityId; }
Direction getDirection() { return direction; }
void setDirection(Direction direction) { this->direction = direction; }
std::string getDirectionAsString();
void setDirectionFromString(std::string directionString);
void parsePayload(std::string payload);
const std::string directionToString[2] = { "be", "ki" };
};