Files
flippr-code/FlippR-Driver/src/input/InputEvent.hpp
Jonas Zeunert 2bef8b6f2d refactor
2018-05-31 16:19:24 +02:00

42 lines
695 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 Input
{
class InputEvent
{
public:
InputEvent(char address, char priority, std::string name) : address(address), priority(priority), name(name){}
bool operator==(const InputEvent& other)
{
return this->name == other.name;
}
bool operator<(const InputEvent& other)
{
return this->priority < other.priority;
}
private:
const char address;
const char priority;
const std::string name;
};
}
#endif /* INPUTEVENT_H_ */