43 lines
627 B
C++
43 lines
627 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>
|
|
|
|
#include "../utilities/config.h"
|
|
|
|
namespace Input
|
|
{
|
|
|
|
class Event
|
|
{
|
|
public:
|
|
Event(char address, int priority, std::string name);
|
|
bool operator==(const Event& other);
|
|
friend bool operator<(const Event& left, const Event& right)
|
|
{
|
|
return left.priority < right.priority;
|
|
}
|
|
|
|
private:
|
|
char address;
|
|
|
|
public:
|
|
int priority;
|
|
std::string name;
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
#endif /* INPUTEVENT_H_ */
|