some refactoring

This commit is contained in:
Jonas Zeunert
2018-11-20 22:52:10 +01:00
parent 2842ac20bb
commit 22f7c43cf0
18 changed files with 32 additions and 18 deletions

View File

@@ -0,0 +1,40 @@
/*
* InputEvent.h
*
* Created on: Apr 5, 2018
* Author: Andreas Schneider, Johannes Wendel, Jonas Zeunert, Rafael Vinci, Dr. Franca Rupprecht
*/
#ifndef INPUTEVENT_H_
#define INPUTEVENT_H_
#include <set>
#include <string>
#include <chrono>
namespace flippR_driver {
namespace input {
class Event {
public:
Event(char address, int priority, std::string name);
friend bool operator==(const Event &left, const Event &right);
friend bool operator<(const Event &left, const Event &right) {
return left.priority < right.priority;
}
public:
std::string name;
char address;
int priority;
};
bool operator==(const Event &left, const Event &right);
}
}
#endif /* INPUTEVENT_H_ */