Files
flippr-code/FlippR-Driver/include/Event.h
2018-09-14 00:33:13 +02:00

44 lines
693 B
C++

/*
* 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>
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_ */